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:
Chris PeBenito 2021-12-05 13:40:17 -05:00 committed by GitHub
commit 1057326601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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}")