Sha256: 3a6762f81923540c8cf647459bfdaf0105da4f07693be6719e5a1a9b87ee0168

Contents?: true

Size: 317 Bytes

Versions: 5

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    # Common functionality for handling Regexp literals.
    module RegexpLiteralHelp
      private

      def freespace_mode_regexp?(node)
        regopt = node.children.find(&:regopt_type?)

        regopt.children.include?(:x)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
files.com-1.0.1 vendor/bundle/ruby/2.5.0/gems/rubocop-0.85.1/lib/rubocop/cop/mixin/regexp_literal_help.rb
rbhint-0.85.1.rc1 lib/rubocop/cop/mixin/regexp_literal_help.rb
rubocop-0.85.1 lib/rubocop/cop/mixin/regexp_literal_help.rb
rbhint-0.8.5.rc1 lib/rubocop/cop/mixin/regexp_literal_help.rb
rubocop-0.85.0 lib/rubocop/cop/mixin/regexp_literal_help.rb