mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00: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);
|
var keys = Object.keys(hoisted);
|
||||||
if (keys.length) {
|
if (keys.length) {
|
||||||
keys.forEach(function(k) {
|
keys.forEach(function(k) {
|
||||||
result = result.replace(k, hoisted[k]);
|
result = result.replace(new RegExp(k,"g"), hoisted[k]);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user