lib/faker/default/internet.rb in faker-3.4.1 vs lib/faker/default/internet.rb in faker-3.4.2

- old
+ new

@@ -63,10 +63,10 @@ # Faker::Internet.username(specifier: 20, separators: ['_']) #=> "nikki_sawaynnikki_saway" def username(specifier: nil, separators: %w[. _]) with_locale(:en) do case specifier when ::String - names = specifier&.gsub("'", '')&.split + names = specifier.gsub("'", '').scan(/[[:word:]]+/) shuffled_names = shuffle(names) return shuffled_names.join(sample(separators)).downcase when Integer # If specifier is Integer and has large value, Argument error exception is raised to overcome memory full error