diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-19 18:09:38 +0400 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-12-29 01:53:27 +0300 |
commit | cd688a60111853f63413a87ad6632ad57368e886 (patch) | |
tree | 7213f737fa99bc91141e53a637ba95530dfcfdaf /lib/tasks/gitlab/import.rake | |
parent | c8bb171664de94778d4e6eba7773596b265f9efb (diff) |
Replace regex methods by string ones since faster
and more readable.
Diffstat (limited to 'lib/tasks/gitlab/import.rake')
-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 |