FIX: hoisting not handling duplicate content

This commit is contained in:
Sam 2014-07-07 15:01:08 +10:00
parent 292d436eaa
commit f37c3dc916
1 changed files with 1 additions and 1 deletions

View File

@ -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]);
});
}