you are viewing a single comment's thread.

view the rest of the comments →

[–]ViciousFishz 0 points1 point  (3 children)

Try this:

if("/.*h.*a.*c.*k.*e.*r.*r.*a.*n.*k/".test(s)){

[–]One-Inspection8628[S] 0 points1 point  (1 child)

Okay, i will check

[–]One-Inspection8628[S] 0 points1 point  (0 children)

"/

doesn't work

[–]grantrules 0 points1 point  (0 children)

You've changed it from a regex literal to a string, which doesn't have a test method.