feat: allow directly pass regular expression
1.0.0