Fix #2894: Use [[:space:]] instead of \s in regexes.
This commit is contained in:
@@ -108,7 +108,7 @@ class FavoriteGroup < ApplicationRecord
|
||||
end
|
||||
|
||||
def self.normalize_name(name)
|
||||
name.gsub(/\s+/, "_")
|
||||
name.gsub(/[[:space:]]+/, "_")
|
||||
end
|
||||
|
||||
def normalize_name
|
||||
|
||||
Reference in New Issue
Block a user