X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fmkws-handlebars.js;h=2aaba2c55df79eed04c0543213c79145616f0ec6;hb=645ae954f72ed221f9d099bd3e4fb08673dab7ce;hp=606dc101aab452d35cf4ab5c99ff80ffb57f60d6;hpb=058ce4a204a9ce4d63b2d319037f60cd9f94ff1b;p=mkws-moved-to-github.git 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]) {