use .test instead of .match
Merge pull request #1 from yukidarake/regex

use .test instead of .match