...
|
...
|
@@ -5,7 +5,7 @@ |
|
|
|
|
|
'use strict';
|
|
|
|
|
|
exports.if_cond = (left, operator, right, options) => {
|
|
|
exports.if_cond = function(left, operator, right, options) {
|
|
|
switch (operator) {
|
|
|
case '==':
|
|
|
return (left == right) ? options.fn(this) : options.inverse(this); // eslint-disable-line
|
...
|
...
|
@@ -30,7 +30,7 @@ exports.if_cond = (left, operator, right, options) => { |
|
|
}
|
|
|
};
|
|
|
|
|
|
exports.escapeType = (value) => {
|
|
|
exports.escapeType = function(value) {
|
|
|
|
|
|
let strs = value.split('');
|
|
|
|
...
|
...
|
@@ -51,7 +51,7 @@ exports.escapeType = (value) => { |
|
|
return strs.join('');
|
|
|
};
|
|
|
|
|
|
exports.escapeLength = (value) => {
|
|
|
exports.escapeLength = function(value) {
|
|
|
let strs = value.split('');
|
|
|
|
|
|
if (strs.length === 2) {
|
...
|
...
|
|