]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Escape regexp quantifiers
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 17 Jul 2021 08:53:10 +0000 (09:53 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 17 Jul 2021 08:53:10 +0000 (09:53 +0100)
lualib/lua_magic/heuristics.lua

index 4943d53922bff0c3bb993e81adb41b58229cb7c4..9297031351489005996940c7b608b71b96b2d40a 100644 (file)
@@ -45,13 +45,13 @@ local zip_trie
 local zip_patterns = {
   -- https://lists.oasis-open.org/archives/office/200505/msg00006.html
   odt = {
-    [[mimetypeapplication/vnd\.oasis\.opendocument.text]],
-    [[mimetypeapplication/vnd\.oasis.opendocument\.image]],
+    [[mimetypeapplication/vnd\.oasis\.opendocument\.text]],
+    [[mimetypeapplication/vnd\.oasis\.opendocument\.image]],
     [[mimetypeapplication/vnd\.oasis\.opendocument\.graphic]]
   },
   ods = {
     [[mimetypeapplication/vnd\.oasis\.opendocument\.spreadsheet]],
-    [[mimetypeapplication/vnd\.oasis\.opendocument.formula]],
+    [[mimetypeapplication/vnd\.oasis\.opendocument\.formula]],
     [[mimetypeapplication/vnd\.oasis\.opendocument\.chart]]
   },
   odp = {[[mimetypeapplication/vnd\.oasis\.opendocument\.presentation]]},