Skip to content

Commit

Permalink
v0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoRosaa committed Feb 9, 2022
1 parent 34bd007 commit b479455
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@

### Features

- Added `startsWithCapital` method
- Added `startsWithCapital` method

## 0.0.7

### Features

- Added `capitalize` method to List<String>
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ flutter pub add string_capitalize

## Methods

### String

- `capitalize` method does transform first letter a uppercase of the `String` or returns empty `String`;

- `capitalizeOrFail` method does transform first letter a uppercase of the `String` or returns an exception;
Expand All @@ -28,4 +30,8 @@ flutter pub add string_capitalize

- `capitalizeEachOrFail` method does transform all first letter a uppercase of words of the `String` or returns an exception;

- `startsWithCapital` method verify if the `String` starts with with a capital letter.
- `startsWithCapital` method verify if the `String` starts with with a capital letter.

### List<String>

- `capitalize` - make first letter to capital to all items of String list.
2 changes: 1 addition & 1 deletion lib/src/string_capitalize_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
final foundLetters = RegExp(r'\w+');

extension ListCapilize on List<String> {
/// Update the first letter to capital all items of this List<String>
/// Make first letter to capital to all items of this List<String>
List<String> capitalize() {
return map((e) => e.capitalize()).toList();
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: string_capitalize
description: Simple extension for Dart language to capitalize our strings
version: 0.0.6
version: 0.0.7
homepage: https://github.com/LeonardoRosaa/string_capitalize

environment:
Expand Down

0 comments on commit b479455

Please sign in to comment.