Commit 589d7ea4 authored by Stefan Hanreich's avatar Stefan Hanreich

using bang method for gsub

parent 78cf7dd9
......@@ -173,8 +173,8 @@ module Ci
# * First/Last Character is not a hyphen
def ref_slug
slugified = ref.to_s.downcase
slugified = slugified.gsub(/[^a-z0-9]/, '-')[0..62]
slugified.gsub(/(\A-+|-+\z)/, '')
slugified.gsub!(/[^a-z0-9]/, '-')
slugified[0..62].gsub(/(\A-+|-+\z)/, '')
end
# Variables whose value does not depend on other variables
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment