A regular expression that will never match
So you have a method returning a regular expression but one case that should not yield a matching Regexp
object but still keep the API stable? Just return one that never matches:
/(?!)/
So you have a method returning a regular expression but one case that should not yield a matching Regexp
object but still keep the API stable? Just return one that never matches:
/(?!)/