Permalink
Browse files

periods are not metacharacters within character classes

  • Loading branch information...
1 parent ebcc4c5 commit ce3864aa36e1afa1492bc2fd37fa96948f745861 Xavier Noria committed Mar 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/tasks/documentation.rake
@@ -1,6 +1,6 @@
namespace :doc do
def gem_path(gem_name)
- path = $LOAD_PATH.grep(/#{gem_name}[\w\-\.]*\/lib$/).first
+ path = $LOAD_PATH.grep(/#{gem_name}[\w.-]*\/lib$/).first
yield File.dirname(path) if path
end

0 comments on commit ce3864a

Please sign in to comment.