commit c1d2d83: [Minor] Avoid cyclic require - it doesn't work in Lua
Vsevolod Stakhov
vsevolod at rspamd.com
Tue Dec 13 22:49:03 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-12-13 22:46:32 +0000
URL: https://github.com/rspamd/rspamd/commit/c1d2d836526df04c66ab40e31bdf8f80951bb64f (HEAD -> master)
[Minor] Avoid cyclic require - it doesn't work in Lua
---
lualib/lua_selectors/extractors.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lualib/lua_selectors/extractors.lua b/lualib/lua_selectors/extractors.lua
index fa5fd314f..581add2a7 100644
--- a/lualib/lua_selectors/extractors.lua
+++ b/lualib/lua_selectors/extractors.lua
@@ -22,7 +22,7 @@ local common = require "lua_selectors/common"
local ts = require("tableshape").types
local maps = require "lua_selectors/maps"
local E = {}
-local M = (require "lua_selectors").M
+local M = "selectors"
local url_flags_ts = ts.array_of(ts.one_of(lua_util.keys(rspamd_url.flags))):is_optional()
More information about the Commits
mailing list