mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +00:00
fix:[RegexTracker] fix search regex helper
This commit is contained in:
parent
9ce2eb1e79
commit
f20df89446
1 changed files with 2 additions and 1 deletions
|
@ -76,6 +76,7 @@ def regex_findall(module_name, redis_key, regex, item_id, item_content, max_time
|
|||
|
||||
def _regex_search(redis_key, regex, item_content):
|
||||
first_occ = regex.search(item_content)
|
||||
if first_occ:
|
||||
r_serv_cache.set(redis_key, first_occ)
|
||||
|
||||
def regex_search(module_name, redis_key, regex, item_id, item_content, max_time=30):
|
||||
|
|
Loading…
Reference in a new issue