Prevents code words in HTML tags from being highlighted (#12003)

* Prevents code words in HTML tags from being highlighted

* Prevents code words in HTML tags from being highlighted

* Force run tests
This commit is contained in:
adamsong
2021-08-14 08:52:39 -04:00
committed by GitHub
parent 72d73667de
commit a3c4fbebbd

View File

@@ -123,7 +123,7 @@ SUBSYSTEM_DEF(ticker)
GLOB.syndicate_code_phrase = generate_code_phrase(return_list=TRUE)
var/codewords = jointext(GLOB.syndicate_code_phrase, "|")
var/regex/codeword_match = new("([codewords])", "ig")
var/regex/codeword_match = new("([codewords])(?!\[^<\]*>)", "ig")
GLOB.syndicate_code_phrase_regex = codeword_match
@@ -131,7 +131,7 @@ SUBSYSTEM_DEF(ticker)
GLOB.syndicate_code_response = generate_code_phrase(return_list=TRUE)
var/codewords = jointext(GLOB.syndicate_code_response, "|")
var/regex/codeword_match = new("([codewords])", "ig")
var/regex/codeword_match = new("([codewords])(?!\[^<\]*>)", "ig")
GLOB.syndicate_code_response_regex = codeword_match