Skip to content

Commit 2098a7d

Browse files
authored
Fix: added "$" in escape_regex chars_to_be_escaped
1 parent af7cf54 commit 2098a7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tool-support/syntax-highlighting/xtext_grammar_converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def escape_regex(s: str) -> str:
406406
:param s: string to be processed
407407
:return: escaped string
408408
"""
409-
chars_to_be_escaped = ("<", ">", "(", ")", "[", "]", "+", "-", "*", ".", "|", "?", "^")
409+
chars_to_be_escaped = ("<", ">", "(", ")", "[", "]", "+", "-", "*", ".", "|", "?", "^", "$")
410410

411411
escaped_s = []
412412
for ch in s:

0 commit comments

Comments
 (0)