testing: accept '@' as a valid ending character in filecon checker
Signed-off-by: Kenton Groombridge <me@concord.sh>
This commit is contained in:
parent
9788933467
commit
9f4afcc6e2
|
@ -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}")
|
||||||
|
|
Loading…
Reference in New Issue