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.11.1 lib/sportdb/utils_goals.rb
sportdb-models-1.11.0 lib/sportdb/utils_goals.rb
sportdb-models-1.10.1 lib/sportdb/utils_goals.rb
sportdb-models-1.10.0 lib/sportdb/utils_goals.rb
sportdb-1.9.16 lib/sportdb/utils_goals.rb
sportdb-1.9.15 lib/sportdb/utils_goals.rb
sportdb-1.9.14 lib/sportdb/utils_goals.rb
sportdb-1.9.13 lib/sportdb/utils_goals.rb
sportdb-1.9.12 lib/sportdb/utils_goals.rb
sportdb-1.9.11 lib/sportdb/utils_goals.rb
sportdb-1.9.10 lib/sportdb/utils_goals.rb
sportdb-1.9.9 lib/sportdb/utils_goals.rb
sportdb-1.9.8 lib/sportdb/utils_goals.rb
sportdb-1.9.7 lib/sportdb/utils_goals.rb
sportdb-1.9.6 lib/sportdb/utils_goals.rb
sportdb-1.9.5 lib/sportdb/utils_goals.rb
sportdb-1.9.4 lib/sportdb/utils_goals.rb
sportdb-1.9.3 lib/sportdb/utils_goals.rb
sportdb-1.9.2 lib/sportdb/utils_goals.rb