Fix eslint no-useless-escape in es5 files
[MAILPOET-1146]
This commit is contained in:
committed by
Rostislav Wolný
parent
9af98f0afb
commit
831804d35e
@@ -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, '');
|
||||
}
|
||||
|
Reference in New Issue
Block a user