mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 19:53:53 -06:00
FIX: hoisting not handling duplicate content
This commit is contained in:
parent
292d436eaa
commit
f37c3dc916
@ -167,7 +167,7 @@ Discourse.Dialect = {
|
||||
var keys = Object.keys(hoisted);
|
||||
if (keys.length) {
|
||||
keys.forEach(function(k) {
|
||||
result = result.replace(k, hoisted[k]);
|
||||
result = result.replace(new RegExp(k,"g"), hoisted[k]);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user