We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c4e915 commit dc71ecdCopy full SHA for dc71ecd
addons/dialogic/Modules/Glossary/subsystem_glossary.gd
@@ -64,7 +64,7 @@ func parse_glossary(text: String) -> String:
64
if regex_options.is_empty():
65
continue
66
67
- var pattern: String = '(?<=\\W|^)(?<!\\\\)(?<word>' + regex_options + ')(?!])(?=\\W|$)'
+ var pattern: String = r'(?<=\W|^)(?<!\\)(?<word>' + regex_options + r')(?!])(?=\W|$)'
68
69
if entry.get('case_sensitive', def_case_sensitive):
70
regex.compile(pattern)
@@ -78,7 +78,7 @@ func parse_glossary(text: String) -> String:
78
color = color_overrides[entry_key].to_html()
79
80
text = regex.sub(text,
81
- '[url=' + entry_key + ']' +
+ '[url="' + entry_key + '"]' +
82
'[color=' + color + ']${word}[/color]' +
83
'[/url]',
84
true
0 commit comments