diff options
author | Xavier Noria <fxn@ubuntu.(none)> | 2010-03-30 01:55:06 -0700 |
---|---|---|
committer | Xavier Noria <fxn@ubuntu.(none)> | 2010-03-30 01:55:06 -0700 |
commit | ce3864aa36e1afa1492bc2fd37fa96948f745861 (patch) | |
tree | 1193ad26ba68ce9f75a070bdd7b05c2e2f6705d4 /railties/lib/rails/tasks/documentation.rake | |
parent | ebcc4c5e746edcebdb58b27d3d54a51e685dd43a (diff) | |
download | rails-ce3864aa36e1afa1492bc2fd37fa96948f745861.tar.gz rails-ce3864aa36e1afa1492bc2fd37fa96948f745861.tar.bz2 rails-ce3864aa36e1afa1492bc2fd37fa96948f745861.zip |
periods are not metacharacters within character classes
Diffstat (limited to 'railties/lib/rails/tasks/documentation.rake')
-rw-r--r-- | railties/lib/rails/tasks/documentation.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/tasks/documentation.rake b/railties/lib/rails/tasks/documentation.rake index f73e333e83..957c375f6a 100644 --- a/railties/lib/rails/tasks/documentation.rake +++ b/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 |