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; return "\\" + c;
} }
}); });
if (type !== 'md5') { re = type === 'md5' ? "/" + value + "/" : "/^" + re + "$/";
re = "/^" + re + "$/";
}
if (/\bop\b/.test(post["class"])) { if (/\bop\b/.test(post["class"])) {
re += ';op:yes'; re += ';op:yes';
} }

View File

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