Skip to content

Commit

Permalink
- Fixing cpfCnpj format
Browse files Browse the repository at this point in the history
  • Loading branch information
Uriel Battanoli committed Jun 1, 2017
1 parent 0c62bb6 commit b48a500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GeneralFormatter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'GeneralFormatter'
s.version = '1.1.0'
s.version = '1.1.1'
s.summary = 'A general formatter.'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion GeneralFormatter/Classes/GeneralFormatter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public class GeneralFormatter {
let formattedString = NSMutableString(string: bruteText)
let textCount = bruteText.characters.count

if textCount < 11 {
if textCount < 12 {
if textCount > 2 {
formattedString.insert(".", at: 3)
}
Expand Down

0 comments on commit b48a500

Please sign in to comment.