Do not use the patterns.test() method here.