testing: accept '@' as a valid ending character in filecon checker

Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
Kenton Groombridge 2021-12-05 12:58:55 -05:00
parent 9788933467
commit 9f4afcc6e2
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. # If the reduced path still ends with a special character, something went wrong.
# Instead of guessing the possible buggy characters, list the allowed ones. # 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 path != '/':
if reduced_path == path: if reduced_path == path:
print(f"{prefix}unexpected end of file pattern for {path}") print(f"{prefix}unexpected end of file pattern for {path}")