Skip to content

Commit

Permalink
add case-insensitive regex matcher as per #636
Browse files Browse the repository at this point in the history
  • Loading branch information
dularion committed May 27, 2018
1 parent 3c926c6 commit a6d94ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grails-app/services/streama/BulkCreateService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class BulkCreateService {
String fileName = file.name

tvShowRegexList.each{ tvShowRegex ->
def tvShowMatcher = fileName =~ tvShowRegex
def tvShowMatcher = fileName =~ '(?i)' + tvShowRegex

if (tvShowMatcher.matches()) {
matchTvShowFromFile(tvShowMatcher, fileResult)
Expand All @@ -65,7 +65,7 @@ class BulkCreateService {
return fileResult
}

def movieMatcher = fileName =~ movieRegex
def movieMatcher = fileName =~ '(?i)' + movieRegex
if (movieMatcher.matches()) {
matchMovieFromFile(movieMatcher, fileResult)
foundMatch = true
Expand Down

0 comments on commit a6d94ad

Please sign in to comment.