Browse files

Use regex pipe instead of second regex

  • Loading branch information...
1 parent 991a2e6 commit 19119a6401f138eeb2a81a96a65b56a3ff3df37e @jnunemaker committed Sep 12, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/flipper/ui/middleware.rb
View
4 lib/flipper/ui/middleware.rb
@@ -89,9 +89,7 @@ def self.detect(request)
case request.path_info
when /\/flipper\/?$/
Index
- when /\/flipper\/images\/(.*)/
- File
- when /\/flipper\/css\/(.*)/
+ when /\/flipper\/images|css\/(.*)/
File
end
end

0 comments on commit 19119a6

Please sign in to comment.