This commit is contained in:
Nicolas Stepien 2012-07-03 18:09:32 +02:00
parent 71cdaabc48
commit a8d4f652cc
2 changed files with 6 additions and 4 deletions

View File

@ -793,9 +793,7 @@
return "\\" + c;
}
});
if (type !== 'md5') {
re = "/^" + re + "$/";
}
re = type === 'md5' ? "/" + value + "/" : "/^" + re + "$/";
if (/\bop\b/.test(post["class"])) {
re += ';op:yes';
}

View File

@ -656,7 +656,11 @@ Filter =
else
"\\#{c}"
re = "/^#{re}$/" unless type is 'md5'
re =
if type is 'md5'
"/#{value}/"
else
"/^#{re}$/"
if /\bop\b/.test post.class
re += ';op:yes'