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…
Reference in New Issue