Fix #524
Fix #524

It seems that .test mutates the regular expression, whereas .match does
not. Whoo JavaScript!

Axure/elm-compiler,5outh/Elm,JoeyEremondi/elm-pattern-effects,pairyo/elm-compiler,deadfoxygrandpa/Elm,laszlopandy/elm-compiler,mgold/Elm