Skip to content

Commit

Permalink
fix: omit . from slug (faker-ruby#1456)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanoblomov authored and vbrazo committed Oct 31, 2018
1 parent 4200de0 commit 9ae7c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/faker/internet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def url(host = domain_name, path = "/#{username}", scheme = 'http')
end

def slug(words = nil, glue = nil)
glue ||= sample(%w[- _ .])
glue ||= sample(%w[- _])
(words || Faker::Lorem.words(2).join(' ')).delete(',.').gsub(' ', glue).downcase
end

Expand Down

0 comments on commit 9ae7c4d

Please sign in to comment.