module Burocracia::Sanitizer

Overview

Module resposible to normalize string inputs.

Extended Modules

Defined in:

burocracia/sanitizer.cr

Instance Method Summary

Instance Method Detail

def sanitize(str : String) #

Normalizes and sanitizes a string input, removing anything but numbers.

Burocracia::Sanitizer.sanitize("108.291.921-23")
=> "10829192123"

[View source]