projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Part of ACREP-30.
[mkws-moved-to-github.git]
/
src
/
mkws-handlebars.js
diff --git
a/src/mkws-handlebars.js
b/src/mkws-handlebars.js
index
606dc10
..
2aaba2c
100644
(file)
--- 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; },
'>': 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]) {
};
if (!operators[operator]) {