replace jquery inArray

master
v1nc 2020-05-11 10:51:24 +00:00 committed by GitHub
parent de6cc1bd90
commit 45a76871be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
var hex_only = /^[0-9a-f]+$/i; var hex_only = /^[0-9a-f]+$/i;
var output = ""; var output = "";
for (var i=0; i<string.length; i++) { for (var i=0; i<string.length; i++) {
if($.inArray(string[i], to_escape) != -1) { if(string[i].includes(to_escape)) {
output += '\\'+string[i]; output += '\\'+string[i];
} }
else { else {