Updated

lib / postcode_sanitizer.rb

A
5 lines of codes
1 methods
3.6 complexity/method
2 churn
3.6 complexity
0 duplications
module PostcodeSanitizer
  1. PostcodeSanitizer has no descriptive comment
def self.call(postcode) postcode.to_s.gsub(/\s+|-+|–+|—+/, "").upcase end end