Fix eslint no-useless-escape in es5 files

[MAILPOET-1146]
This commit is contained in:
Pavel Dohnal
2018-03-01 12:28:47 +00:00
committed by Rostislav Wolný
parent 9af98f0afb
commit 831804d35e
4 changed files with 3 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ define('handlebars_helpers', ['handlebars'], function (Handlebars) {
return url + value;
});
Handlebars.registerHelper('emailFromMailto', function (value) {
var mailtoMatchingRegex = /^mailto\:/i;
var mailtoMatchingRegex = /^mailto:/i;
if (typeof value === 'string' && value.match(mailtoMatchingRegex)) {
return value.replace(mailtoMatchingRegex, '');
}