Method: Fastlane::Actions::OclintAction.ensure_regex_is_not_string!

Defined in:
fastlane/lib/fastlane/actions/oclint.rb

.ensure_regex_is_not_string!(regex) ⇒ Object

return a proper regex object if regex string is single-quoted


99
100
101
102
103
# File 'fastlane/lib/fastlane/actions/oclint.rb', line 99

def self.ensure_regex_is_not_string!(regex)
  return regex unless regex.kind_of?(String)

  Regexp.new(regex)
end