Closed skalee closed 3 years ago
Following methods are being extracted:
String#sanitize
String#decode_html
String#to_three_char_code
This eliminates some copy-pasted logic. Also, newly defined methods are well-tested.
Maybe math conversion could be extracted too, but for now I don't want to touch it.
Following methods are being extracted:
String#sanitize
, which normalizes various Unicode odditiesString#decode_html
, which decodes HTML entitiesString#to_three_char_code
, which handles language code conversionThis eliminates some copy-pasted logic. Also, newly defined methods are well-tested.
Maybe math conversion could be extracted too, but for now I don't want to touch it.