Add utility function to create Regex from list of allowed strings
bahmutov opened this issue ยท comments
Gleb Bahmutov commented
So we can easily form regex for "one of these values" custom format
currently if the value is a string with possible values "foo", "bar", "baz" we have to code by hand
detect: /^(foo|bar|baz)$/
but could be really simple to write detect: regexOf('foo', 'bar', baz')
Gleb Bahmutov commented
๐ This issue has been resolved in version 4.4.0 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐