mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Applied most Rubocop-suggested layout fixes
This commit is contained in:
@@ -373,11 +373,11 @@ class Messages
|
||||
|
||||
def self.stringToKey(str)
|
||||
if str && str[/[\r\n\t\1]|^\s+|\s+$|\s{2,}/]
|
||||
key=str.clone
|
||||
key.gsub!(/^\s+/,"")
|
||||
key.gsub!(/\s+$/,"")
|
||||
key.gsub!(/\s{2,}/," ")
|
||||
return key
|
||||
key = str.clone
|
||||
key.gsub!(/^\s+/, "")
|
||||
key.gsub!(/\s+$/, "")
|
||||
key.gsub!(/\s{2,}/, " ")
|
||||
return key
|
||||
end
|
||||
return str
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user