Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

periods are not metacharacters within character classes

  • Loading branch information...
commit ce3864aa36e1afa1492bc2fd37fa96948f745861 1 parent ebcc4c5
Xavier Noria authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/tasks/documentation.rake
2  railties/lib/rails/tasks/documentation.rake
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.