Skip to content

Commit

Permalink
Use regex pipe instead of second regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Sep 12, 2012
1 parent 991a2e6 commit 19119a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/flipper/ui/middleware.rb
Expand Up @@ -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
Expand Down

0 comments on commit 19119a6

Please sign in to comment.