diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-19 16:09:38 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-12-28 23:53:27 +0100 |
commit | cd688a60111853f63413a87ad6632ad57368e886 (patch) | |
tree | 7213f737fa99bc91141e53a637ba95530dfcfdaf /lib/tasks | |
parent | c8bb171664de94778d4e6eba7773596b265f9efb (diff) | |
download | gitlab-ce-cd688a60111853f63413a87ad6632ad57368e886.tar.gz |
Replace regex methods by string ones since faster
and more readable.
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/import.rake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/import.rake b/lib/tasks/gitlab/import.rake index 3c693546c09..fef2afd7333 100644 --- a/lib/tasks/gitlab/import.rake +++ b/lib/tasks/gitlab/import.rake @@ -25,7 +25,7 @@ namespace :gitlab do puts "Processing #{repo_path}".yellow - if path =~ /\.wiki\Z/ + if path.end_with?('.wiki') puts " * Skipping wiki repo" next end |