Closed philsturgeon closed 8 months ago
@philsturgeon
Hey!
Have you tried match: "/(local|alpha|beta|test|testing|stag|staging|prod|production|next|preprod)/i"
?
@P0lip haha well don't I feel like a numpty.
Added this to docs so it doesn't come up again.
Also hello! Hope you're doing well mate. 🙌🏻
Thanks for the PR, I appreciate it. I am doing fine, thanks! I hope you're doing great too!
:tada: This issue has been resolved in version 1.19.0 :tada:
The release is available on @stoplight/spectral-rulesets-1.19.0
Your semantic-release bot :package::rocket:
User story. As a ruleset developer, I can pass regex modifiers to the pattern function, so that I can make more advanced rulesets with everything regex has to offer instead of just the default mode.
Is your feature request related to a problem?
Working on https://github.com/stoplightio/spectral-owasp-ruleset/pull/51 I had to write some fairly hectic regex due to not being able to set the
/i
modifier for case insenstivity.Describe the solution you'd like
Or you could make it nicer for people and make human named switches like
case-insensitive: true
or whatever.