Skip to content

Commit

Permalink
Merge pull request #2130 from scottsds/issue_4301
Browse files Browse the repository at this point in the history
4301: Advanced work search date field is case sensitive
  • Loading branch information
sarken committed Sep 19, 2015
2 parents 99b1ca3 + 03da0ff commit 1d76226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/search.rb
Expand Up @@ -23,7 +23,7 @@ def #{method_name}=(value)
def self.range_to_search(option)
option.gsub!(">", ">")
option.gsub!("&lt;", "<")
match = option.match(/^([<>]*)\s*([\d -]+)\s*(year|week|month|day|hour)s?(\s*ago)?s*$/)
match = option.match(/^([<>]*)\s*([\d -]+)\s*(year|week|month|day|hour)s?(\s*ago)?s*$/i)
range = {}
if match
range = time_range(match[1], match[2], match[3])
Expand Down

0 comments on commit 1d76226

Please sign in to comment.