diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2019-07-04 21:43:23 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2019-07-04 21:44:22 +0200 |
| commit | a1637dbbdffce153c7cfac94a94e38cfc8bed636 (patch) | |
| tree | d4e71ba188c77a2764700bb8c9dbd67e5264481f | |
| parent | 7b22f1b5a74dcc6ffcca9ef651fded6f144db76e (diff) | |
_name_special_search regex consistency nit
Put $ after word characters, like in _command_match and
_id_keyword_match.
| -rw-r--r-- | kconfiglib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 90eacab..b3d0397 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -7023,7 +7023,7 @@ _string_special_search = _re_search(r'"|\'|\\|\$\(') # Special characters/strings while expanding a symbol name. Also includes # end-of-line, in case the macro is the last thing on the line. -_name_special_search = _re_search(r'[^$A-Za-z0-9_/.-]|\$\(|$') +_name_special_search = _re_search(r'[^A-Za-z0-9_$/.-]|\$\(|$') # A valid right-hand side for an assignment to a string symbol in a .config # file, including escaped characters. Extracts the contents. |
