This commit is contained in:
@@ -125,7 +125,11 @@ export default {
|
|||||||
var pattern = /\[(.*?)\]/g;
|
var pattern = /\[(.*?)\]/g;
|
||||||
var match;
|
var match;
|
||||||
while ((match = pattern.exec(s)) != null) {
|
while ((match = pattern.exec(s)) != null) {
|
||||||
ret.replace(match, this.get(match));
|
var foundMatch = match[0];
|
||||||
|
var ltKey = match[1];
|
||||||
|
var newValue = this.get(ltKey);
|
||||||
|
|
||||||
|
ret = ret.replace(foundMatch, newValue);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user