From 69c9664f1cd0d1c6a4722d88fbba308e8655a34a Mon Sep 17 00:00:00 2001 From: Shivansh-007 Date: Wed, 16 Mar 2022 09:28:13 +0530 Subject: [PATCH] Reword regex comments to use 'character' --- src/black/strings.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/black/strings.py b/src/black/strings.py index 93c54b69f1b..4cfca8173d3 100644 --- a/src/black/strings.py +++ b/src/black/strings.py @@ -22,10 +22,10 @@ FIRST_NON_WHITESPACE_RE: Final = re.compile(r"\s*\t+\s*(\S)") UNICODE_RE: Final = re.compile( r"(\\+)(" - r"(u([a-zA-Z0-9]{4}))" # Formatting 16-bit unicodes i.e. \uxxxx - r"|(U([a-zA-Z0-9]{0,8}))" # Formatting 32-bit unicodes i.e. \Uxxxxxxxx - r"|(x([a-zA-Z0-9]{2}))" # Formatting unicodes in format of \xhh - r"|(N\{([a-zA-Z0-9]{2})\})" # Formatting named unicodes in format of \N{name} + r"(u([a-zA-Z0-9]{4}))" # Character with 16-bit hex value xxxx + r"|(U([a-zA-Z0-9]{0,8}))" # Character with 32-bit hex value xxxxxxxx + r"|(x([a-zA-Z0-9]{2}))" # Character with hex value hh + r"|(N\{([a-zA-Z0-9]{2})\})" # Character named name in the Unicode database r")", re.MULTILINE, )