Skip to content

Commit

Permalink
Case insensitive routes.
Browse files Browse the repository at this point in the history
  • Loading branch information
onewheelskyward committed Aug 18, 2017
1 parent 6eb32ab commit bd70d8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lita/handlers/onewheel_youtube.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class OnewheelYoutube < Handler
config :google_api_key
config :safe_search, required: false, default: 'medium'

route /^youtube\s+(.*)$/, :search, command: true
route /^youtube\s+(.*)$/i, :search, command: true

def search(response)
query = response.matches[0][0]
Expand Down
2 changes: 1 addition & 1 deletion lita-onewheel-youtube.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'lita-onewheel-youtube'
spec.version = '0.0.0'
spec.version = '0.0.1'
spec.authors = ['Andrew Kreps']
spec.email = ['andrew.kreps@gmail.com']
spec.description = 'An implementation of Google Custom Search Engine for searching Youtube in chat.'
Expand Down

0 comments on commit bd70d8a

Please sign in to comment.