Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 3fe34ef

Browse files
authored
Merge pull request #369 from Bidaya0/fix-regex-test
fix regex match test
2 parents f2748c7 + abfdb67 commit 3fe34ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iast/views/sensitive_info_rule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def regextest(test_data,pattern):
306306
return data,status
307307
result = regex.search(test_data)
308308
if result and result.groups():
309-
return result.group(1), 1
309+
return result.group(0), 1
310310
return '', 1
311311

312312
def jsontest(test_data,pattern):

0 commit comments

Comments
 (0)