lib/sportdb/formats/datafile.rb in sportdb-formats-0.1.5 vs lib/sportdb/formats/datafile.rb in sportdb-formats-0.1.6
- old
+ new
@@ -37,9 +37,10 @@
def self.match_clubs_wiki( path ) CLUBS_WIKI_REGEX.match( path ); end
LEAGUES_REGEX = %r{ (?:^|/) # beginning (^) or beginning of path (/)
+ (?:[a-z]{1,4}\.)? # optional country code/key e.g. eng.clubs.wiki.txt
leagues\.txt$
}x
def self.find_leagues( path, pattern: LEAGUES_REGEX ) find( path, pattern ); end
def self.match_leagues( path ) LEAGUES_REGEX.match( path ); end