Skip to content

Commit f8b26ce

Browse files
committed
Replace all token instead of first occurence
1 parent a53a3a7 commit f8b26ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.jsperanto.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252

5353
function applyReplacement(string,replacementHash){
5454
$.each(replacementHash,function(key,value){
55-
string = string.replace([o.interpolationPrefix,key,o.interpolationSuffix].join(''),value);
55+
string = string.split([o.interpolationPrefix,key,o.interpolationSuffix].join('')).join(value);
5656
});
5757
return string;
5858
}
59-
59+
6060
function applyReuse(translated,options){
6161
while (translated.indexOf(o.reusePrefix) != -1){
6262
count_of_replacement++;

0 commit comments

Comments
 (0)