Method: HTMLProofer::Configuration.to_regex?

Defined in:
lib/html-proofer/configuration.rb

.to_regex?(item) ⇒ Boolean

Returns:

  • (Boolean)


48
49
50
51
52
53
54
# File 'lib/html-proofer/configuration.rb', line 48

def self.to_regex?(item)
  if item.start_with?('/') && item.end_with?('/')
    Regexp.new item[1...-1]
  else
    item
  end
end