Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix modular sinatra app detection

Change-Id: Idb487de6c99050a41b44221e14407a2c10c2a522
  • Loading branch information...
commit d066e8b2a1ae495a6d688ead63020526bface2d6 1 parent 870b4e1
@vito vito authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/cli/frameworks.rb
View
2  lib/cli/frameworks.rb
@@ -86,7 +86,7 @@ def detect(path, available_frameworks)
next if matched_file
File.open(fname, 'r') do |f|
str = f.read # This might want to be limited
- matched_file = fname if (str && str.match(/^\s*require[\s\(]*['"]sinatra['"(\/base['"])]/))
+ matched_file = fname if (str && str.match(/^\s*require[\s\(]*['"]sinatra(\/base)?['"]/))
end
end
if matched_file
Please sign in to comment.
Something went wrong with that request. Please try again.