Fixed call to String.match with regexp pattern