Fix eslint no-useless-escape in es5 files
[MAILPOET-1146]
This commit is contained in:
committed by
Rostislav Wolný
parent
9af98f0afb
commit
831804d35e
@@ -20,7 +20,6 @@
|
|||||||
"no-restricted-syntax": 0,
|
"no-restricted-syntax": 0,
|
||||||
"no-useless-concat": 0,
|
"no-useless-concat": 0,
|
||||||
"no-nested-ternary": 0,
|
"no-nested-ternary": 0,
|
||||||
"no-useless-escape": 0,
|
|
||||||
"brace-style": 0,
|
"brace-style": 0,
|
||||||
"space-infix-ops": 0
|
"space-infix-ops": 0
|
||||||
}
|
}
|
||||||
|
@@ -879,7 +879,7 @@ WysijaForm.Block = window.Class.create({
|
|||||||
createBlockDroppable: function () {
|
createBlockDroppable: function () {
|
||||||
info('block -> createBlockDroppable');
|
info('block -> createBlockDroppable');
|
||||||
this.element.insert({
|
this.element.insert({
|
||||||
before: '<div class=\"block_placeholder\">' + window.$('block_placeholder').innerHTML + '</div>'
|
before: '<div class="block_placeholder">' + window.$('block_placeholder').innerHTML + '</div>'
|
||||||
});
|
});
|
||||||
return this.element.previous('.block_placeholder');
|
return this.element.previous('.block_placeholder');
|
||||||
},
|
},
|
||||||
|
@@ -83,7 +83,7 @@ define('handlebars_helpers', ['handlebars'], function (Handlebars) {
|
|||||||
return url + value;
|
return url + value;
|
||||||
});
|
});
|
||||||
Handlebars.registerHelper('emailFromMailto', function (value) {
|
Handlebars.registerHelper('emailFromMailto', function (value) {
|
||||||
var mailtoMatchingRegex = /^mailto\:/i;
|
var mailtoMatchingRegex = /^mailto:/i;
|
||||||
if (typeof value === 'string' && value.match(mailtoMatchingRegex)) {
|
if (typeof value === 'string' && value.match(mailtoMatchingRegex)) {
|
||||||
return value.replace(mailtoMatchingRegex, '');
|
return value.replace(mailtoMatchingRegex, '');
|
||||||
}
|
}
|
||||||
|
@@ -165,7 +165,7 @@ define(
|
|||||||
email = test[1].trim();
|
email = test[1].trim();
|
||||||
}
|
}
|
||||||
// test for valid characters using WP's rule (https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-includes/formatting.php#L2902)
|
// test for valid characters using WP's rule (https://core.trac.wordpress.org/browser/tags/4.7.3/src/wp-includes/formatting.php#L2902)
|
||||||
if (!/^[a-zA-Z0-9!#$%&\'*+\/=?^_`{|}~\.\-@]+$/.test(email)) {
|
if (!/^[a-zA-Z0-9!#$%&'*+/=?^_`{|}~.-@]+$/.test(email)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return email;
|
return email;
|
||||||
|
Reference in New Issue
Block a user