Skip to content

Commit

Permalink
Merge pull request #25 from ranpa/develop
Browse files Browse the repository at this point in the history
v0.5.0
  • Loading branch information
ranpa authored Mar 28, 2020
2 parents 778514c + b81a462 commit ed1910b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "capitalize-pt-br",
"version": "0.4.0",
"version": "0.5.0",
"description": "A library for capitalizing each word's first letter of a given string",
"main": "dist/capitalize-pt-br.min.js",
"typings": "dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ describe('With prepositions', () => {
const after = 'Aracaju em Boas Mãos'
expect(capitalize(before)).toEqual(after)
})

it('capitalize("D. PEDRO I") should return "D. Pedro I"', () => {
const before = 'D. PEDRO I'
const after = 'D. Pedro I'
expect(capitalize(before)).toEqual(after)
})
})

describe('With initials', () => {
Expand Down
2 changes: 0 additions & 2 deletions src/keep-lowercase.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ const keepLowercase = [
'dos',
'e',
'em',
'i',
'na',
'nas',
'no',
'nos',
'o',
'por',
'sem',
'u',
]

export default keepLowercase

0 comments on commit ed1910b

Please sign in to comment.