Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 3bb16ef

Browse files
authored
Merge pull request django-ckeditor#453 from ahumeau/master
Fix invalid escape sequences in regexp patterns
2 parents f9652bc + a3e275a commit 3bb16ef

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ckeditor_uploader/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
# file version is used instead of the default.
1919
override_icons = getattr(settings, 'CKEDITOR_FILEICONS', [])
2020
ckeditor_icons = [
21-
('\.pdf$', fileicons_path + 'pdf.png'),
22-
('\.doc$|\.docx$|\.odt$', fileicons_path + 'doc.png'),
23-
('\.txt$', fileicons_path + 'txt.png'),
24-
('\.ppt$', fileicons_path + 'ppt.png'),
25-
('\.xls$', fileicons_path + 'xls.png'),
21+
(r'\.pdf$', fileicons_path + 'pdf.png'),
22+
(r'\.doc$|\.docx$|\.odt$', fileicons_path + 'doc.png'),
23+
(r'\.txt$', fileicons_path + 'txt.png'),
24+
(r'\.ppt$', fileicons_path + 'ppt.png'),
25+
(r'\.xls$', fileicons_path + 'xls.png'),
2626
('.*', fileicons_path + 'file.png'), # Default
2727
]
2828
CKEDITOR_FILEICONS = override_icons + ckeditor_icons

0 commit comments

Comments
 (0)