Browse Source

lint

pull/781/head
Ted-U 3 years ago
parent
commit
16f77573e2
  1. 4
      lib/ext/string.rb

4
lib/ext/string.rb

@ -1,6 +1,6 @@
class String class String
def formatted_postcode def formatted_postcode
postcode = self.upcase.gsub(/\s+/, "") postcode = upcase.gsub(/\s+/, "")
case postcode.length case postcode.length
when 5 when 5
postcode.insert(2, " ") postcode.insert(2, " ")
@ -12,4 +12,4 @@ class String
self self
end end
end end
end end

Loading…
Cancel
Save