diff options
| author | Philipp Hagemeister <phihag@phihag.de> | 2015-02-24 11:38:01 +0100 | 
|---|---|---|
| committer | Philipp Hagemeister <phihag@phihag.de> | 2015-02-24 11:38:01 +0100 | 
| commit | 5a42414b9c4718f83f28fbc0e5a4a01ab67f23f6 (patch) | |
| tree | 1e4720981c77330b73f491e5c7b4b9f2d304b562 /test | |
| parent | 9c665ab72e5fc99989800109cdada5acc3af56c5 (diff) | |
[utils] Prevent hyphen at beginning of filename (Fixes #5035)
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_utils.py | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/test/test_utils.py b/test/test_utils.py index c7373af1e..2f8996d7b 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -85,6 +85,8 @@ class TestUtil(unittest.TestCase):          self.assertEqual(              sanitize_filename('New World record at 0:12:34'),              'New World record at 0_12_34') +        self.assertEqual(sanitize_filename('--gasdgf'), '_-gasdgf') +        self.assertEqual(sanitize_filename('--gasdgf', is_id=True), '--gasdgf')          forbidden = '"\0\\/'          for fc in forbidden: | 
