Skip to content

Commit 5afd963

Browse files
committed
Fix - highlight ship name starting with dash stuck in infinite loop.
1 parent c0fecc4 commit 5afd963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vi/chatparser/parser_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
# Do not ignore ? which triggers status change to request
5050
CHARS_TO_IGNORE_REGEX = '[*,!.()]'
5151

52-
REPLACE_WORD_REGEX = r'(^|(?<=[^0-9a-zA-Z_-])){0}((?=[^0-9a-zA-Z_])|$)'
52+
REPLACE_WORD_REGEX = r'(^|(?<=[^0-9a-zA-Z])){0}((?=[^0-9a-zA-Z_])|$)'
5353

5454

5555
def textReplace(element, newText):

0 commit comments

Comments
 (0)