commit b414177: [Minor] Escape regexp quantifiers

Vsevolod Stakhov vsevolod at highsecure.ru
Sat Jul 17 09:07:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-07-17 09:53:10 +0100
URL: https://github.com/rspamd/rspamd/commit/b41417742ec343a9e805b70f761eb51cc46c818d

[Minor] Escape regexp quantifiers

---
 lualib/lua_magic/heuristics.lua | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lualib/lua_magic/heuristics.lua b/lualib/lua_magic/heuristics.lua
index 4943d5392..929703135 100644
--- a/lualib/lua_magic/heuristics.lua
+++ b/lualib/lua_magic/heuristics.lua
@@ -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]]},


More information about the Commits mailing list