X-Git-Url: http://git.indexdata.com/?p=mkws-moved-to-github.git;a=blobdiff_plain;f=src%2Fmkws-handlebars.js;fp=src%2Fmkws-handlebars.js;h=2aaba2c55df79eed04c0543213c79145616f0ec6;hp=606dc101aab452d35cf4ab5c99ff80ffb57f60d6;hb=d801f1c6dea95a19fa0cb76777448645b95a648f;hpb=685ffcf938de174c7d869bd4a2acc2fc4fbba904 diff --git a/src/mkws-handlebars.js b/src/mkws-handlebars.js index 606dc10..2aaba2c 100644 --- a/src/mkws-handlebars.js +++ b/src/mkws-handlebars.js @@ -143,7 +143,8 @@ Handlebars.registerHelper('compare', function (lvalue, operator, rvalue, options '>': function (l, r) { return l > r; }, '<=': function (l, r) { return l <= r; }, '>=': function (l, r) { return l >= r; }, - 'typeof': function (l, r) { return typeof l == r; } + 'typeof': function (l, r) { return typeof l == r; }, + 'matches': function (l, r) { return l.match(r); } }; if (!operators[operator]) {