commit 472537f: [Minor] Remove superfluous '|' in regular expression

twesterhever 40121680+twesterhever at users.noreply.github.com
Thu Jun 22 22:07:05 UTC 2023


Author: twesterhever
Date: 2023-06-22 20:51:54 +0000
URL: https://github.com/rspamd/rspamd/commit/472537fc8301704737e60aa2dbc6d308c7d1be48 (refs/pull/4497/head)

[Minor] Remove superfluous '|' in regular expression

---
 rules/regexp/headers.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/regexp/headers.lua b/rules/regexp/headers.lua
index 2dddf7d0f..51c3bf5d1 100644
--- a/rules/regexp/headers.lua
+++ b/rules/regexp/headers.lua
@@ -915,7 +915,7 @@ reconf['HAS_GUC_PROXY_URI'] = {
 }
 
 reconf['HAS_GOOGLE_REDIR'] = {
-  re = '/\\.google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs|)\\/url\\?/{url}i',
+  re = '/\\.google\\.([a-z]{2,3}(|\\.[a-z]{2,3})|info|jobs)\\/url\\?/{url}i',
   description = 'Has google.com/url or alike Google redirection URL',
   score = 1.0,
   group = 'url'


More information about the Commits mailing list