cebdfb35d7
- store and redirect urls without protocol - update README - increment counter with SQL COALESCE - add linksHelper - update tests
8 lines
138 B
Ruby
8 lines
138 B
Ruby
# frozen_string_literal: true
|
|
|
|
module LinksHelper
|
|
def stripped_url(url)
|
|
url.sub(%r{^.*://(www\.)?}, '').sub(/^www\./, '')
|
|
end
|
|
end
|