Merge pull request #6982 from aditya-deshpande-arm/check-files-characters

check_files.py: Allow specific Box Drawing characters to be used
This commit is contained in:
Gilles Peskine 2023-02-03 11:46:06 +01:00 committed by GitHub
commit 753ad17a41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -268,7 +268,7 @@ class UnicodeIssueTracker(LineIssueTracker):
heading = "Invalid UTF-8 or forbidden character:"
# Only allow valid UTF-8, and only white-listed characters.
# Only allow valid UTF-8, and only other explicitly allowed characters.
# We deliberately exclude all characters that aren't a simple non-blank,
# non-zero-width glyph, apart from a very small set (tab, ordinary space,
# line breaks, "basic" no-break space and soft hyphen). In particular,
@ -285,6 +285,7 @@ class UnicodeIssueTracker(LineIssueTracker):
'\u2070\u2071\u2074-\u208E\u2090-\u209C', # Superscripts and Subscripts
'\u2190-\u21FF', # Arrows
'\u2200-\u22FF', # Mathematical Symbols
'\u2500-\u257F' # Box Drawings characters used in markdown trees
])
# Allow any of the characters and ranges above, and anything classified
# as a word constituent.