mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-09 15:35:47 +01:00
timing out reset codes, enhancing template replace so that a single placeholder can be used multiple times
This commit is contained in:
@@ -29,7 +29,8 @@ var fs = require('fs');
|
||||
|
||||
var parse = function(data) {
|
||||
function replace(key, value, template) {
|
||||
return template.replace("{" + key + "}", value);
|
||||
var searchRegex = new RegExp('{' + key + '}', 'g');
|
||||
return template.replace(searchRegex, value);
|
||||
}
|
||||
|
||||
function makeRegex(block) {
|
||||
|
||||
Reference in New Issue
Block a user