Sha256: f489a57096d0ba643c58156e9b6fb3a119434a0829cc6bf6ab2c6d0398e82096

Contents?: true

Size: 381 Bytes

Versions: 39

Compression:

Stored size: 381 Bytes

Contents

# encoding: utf-8

module SportDb
  module FixtureHelpers

  def is_goals?( line )
    # check if is goals line
    #  e.g. looks like
    #   Neymar 29', 71' (pen.) Oscar 90+1';  Marcelo 11' (o.g.)
    #  check for
    #    <space>90'  or
    #    <space>90+1'

    line =~ /[ ](\d{1,3}\+)?\d{1,3}'/
  end


  end # module FixtureHelpers
end # module SportDb

Version data entries

39 entries across 39 versions & 2 rubygems

Version Path
sportdb-models-1.18.6 lib/sportdb/utils_goals.rb
sportdb-models-1.18.5 lib/sportdb/utils_goals.rb
sportdb-models-1.18.4 lib/sportdb/utils_goals.rb
sportdb-models-1.18.3 lib/sportdb/utils_goals.rb
sportdb-models-1.18.2 lib/sportdb/utils_goals.rb
sportdb-models-1.18.1 lib/sportdb/utils_goals.rb
sportdb-models-1.18.0 lib/sportdb/utils_goals.rb
sportdb-models-1.17.0 lib/sportdb/utils_goals.rb
sportdb-models-1.16.2 lib/sportdb/utils_goals.rb
sportdb-models-1.16.1 lib/sportdb/utils_goals.rb
sportdb-models-1.16.0 lib/sportdb/utils_goals.rb
sportdb-models-1.15.2 lib/sportdb/utils_goals.rb
sportdb-models-1.15.1 lib/sportdb/utils_goals.rb
sportdb-models-1.15.0 lib/sportdb/utils_goals.rb
sportdb-models-1.14.2 lib/sportdb/utils_goals.rb
sportdb-models-1.14.1 lib/sportdb/utils_goals.rb
sportdb-models-1.14.0 lib/sportdb/utils_goals.rb
sportdb-models-1.13.0 lib/sportdb/utils_goals.rb
sportdb-models-1.12.0 lib/sportdb/utils_goals.rb
sportdb-models-1.11.2 lib/sportdb/utils_goals.rb