diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2015-01-11 17:40:45 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2015-01-11 17:40:45 +0100 |
commit | 2aeb06d6dc8c615cf98b7d21ad152bb393726b8a (patch) | |
tree | 8fe88b4b0bc706ca1ef065c0519093431883e17f /test | |
parent | 4340decad25e264863e27538847e17918b4c1ae2 (diff) |
[utils] Improve colon handling (Fixes #4683)
Diffstat (limited to 'test')
-rw-r--r-- | test/test_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_utils.py b/test/test_utils.py index 16e1a1ddf..5e16f30a2 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -79,6 +79,10 @@ class TestUtil(unittest.TestCase): tests = '\u043a\u0438\u0440\u0438\u043b\u043b\u0438\u0446\u0430' self.assertEqual(sanitize_filename(tests), tests) + self.assertEqual( + sanitize_filename('New World record at 0:12:34'), + 'New World record at 0_12_34') + forbidden = '"\0\\/' for fc in forbidden: for fbc in forbidden: |