Authored by htoooth

fix helper

@@ -5,7 +5,7 @@ @@ -5,7 +5,7 @@
5 5
6 'use strict'; 6 'use strict';
7 7
8 -exports.if_cond = (left, operator, right, options) => { 8 +exports.if_cond = function(left, operator, right, options) {
9 switch (operator) { 9 switch (operator) {
10 case '==': 10 case '==':
11 return (left == right) ? options.fn(this) : options.inverse(this); // eslint-disable-line 11 return (left == right) ? options.fn(this) : options.inverse(this); // eslint-disable-line
@@ -30,7 +30,7 @@ exports.if_cond = (left, operator, right, options) => { @@ -30,7 +30,7 @@ exports.if_cond = (left, operator, right, options) => {
30 } 30 }
31 }; 31 };
32 32
33 -exports.escapeType = (value) => { 33 +exports.escapeType = function(value) {
34 34
35 let strs = value.split(''); 35 let strs = value.split('');
36 36
@@ -51,7 +51,7 @@ exports.escapeType = (value) => { @@ -51,7 +51,7 @@ exports.escapeType = (value) => {
51 return strs.join(''); 51 return strs.join('');
52 }; 52 };
53 53
54 -exports.escapeLength = (value) => { 54 +exports.escapeLength = function(value) {
55 let strs = value.split(''); 55 let strs = value.split('');
56 56
57 if (strs.length === 2) { 57 if (strs.length === 2) {