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:
/(?!)/
Posted by Arne Hartherz to makandra dev (2013-02-20 18:15)
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:
/(?!)/