Merge pull request #446 from 0xC0ncord/fc-checker-at-sign
testing: accept '@' as a valid ending character in filecon checker
This commit is contained in:
commit
1057326601
|
@ -246,7 +246,7 @@ def analyze_fc_file(fc_path):
|
|||
|
||||
# If the reduced path still ends with a special character, something went wrong.
|
||||
# Instead of guessing the possible buggy characters, list the allowed ones.
|
||||
if reduced_path and not re.match(r'[-0-9A-Za-z_\]~ᠰ]', reduced_path[-1]):
|
||||
if reduced_path and not re.match(r'[-0-9A-Za-z_@\]~ᠰ]', reduced_path[-1]):
|
||||
if path != '/':
|
||||
if reduced_path == path:
|
||||
print(f"{prefix}unexpected end of file pattern for {path}")
|
||||
|
|
Loading…
Reference in New Issue