Skip to content

Commit

Permalink
v3.0.2
Browse files Browse the repository at this point in the history
- Null safety migration adjustments.
  • Loading branch information
gmpassos committed Mar 10, 2021
1 parent b814f83 commit 9376e92
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.2

- Null safety migration adjustments.

## 3.0.1

- Null safety migration adjustments.
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
# Swiss Knife

[![pub package](https://img.shields.io/pub/v/swiss_knife.svg?logo=dart&logoColor=00b9fc)](https://pub.dartlang.org/packages/swiss_knife)
[![Null Safety](https://img.shields.io/badge/null-safety-brightgreen)](https://dart.dev/null-safety)

[![CI](https://img.shields.io/github/workflow/status/gmpassos/swiss_knife/Dart%20CI/master?logo=github-actions&logoColor=white)](https://github.com/gmpassos/swiss_knife/actions)
[![GitHub Tag](https://img.shields.io/github/v/tag/gmpassos/swiss_knife?logo=git&logoColor=white)](https://github.com/gmpassos/swiss_knife/releases)
[![New Commits](https://img.shields.io/github/commits-since/gmpassos/swiss_knife/latest?logo=git&logoColor=white)](https://github.com/gmpassos/swiss_knife/network)
[![Last Commits](https://img.shields.io/github/last-commit/gmpassos/swiss_knife?logo=git&logoColor=white)](https://github.com/gmpassos/swiss_knife/commits/master)
[![Pull Requests](https://img.shields.io/github/issues-pr/gmpassos/swiss_knife?logo=github&logoColor=white)](https://github.com/gmpassos/swiss_knife/pulls)
[![Code size](https://img.shields.io/github/languages/code-size/gmpassos/swiss_knife?logo=github&logoColor=white)](https://github.com/gmpassos/swiss_knife)
[![License](https://img.shields.io/github/license/gmpassos/swiss_knife?logo=open-source-initiative&logoColor=green)](https://github.com/gmpassos/swiss_knife/blob/master/LICENSE)
[![Funding](https://img.shields.io/badge/Donate-yellow?labelColor=666666&style=plastic&logo=liberapay)](https://liberapay.com/gmpassos/donate)
[![Funding](https://img.shields.io/liberapay/patrons/gmpassos.svg?logo=liberapay)](https://liberapay.com/gmpassos/donate)


Dart Useful Tools:

Expand Down
4 changes: 2 additions & 2 deletions lib/src/regexp.dart
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ final RegExp STRING_PLACEHOLDER_PATTERN = RegExp(r'{{(/?\w+(?:/\w+)*/?)}}');
/// Builds a string using as place holders in the format `{{key}}`
/// from [parameters] and [extraParameters].
String? buildStringPattern(String? pattern, Map? parameters,
[List<Map>? extraParameters]) {
[List<Map?>? extraParameters]) {
if (pattern == null) return null;

return replaceStringMarks(pattern, STRING_PLACEHOLDER_PATTERN, (varName) {
Expand All @@ -300,7 +300,7 @@ String? buildStringPattern(String? pattern, Map? parameters,

if (val == null && extraParameters != null) {
for (var parameters2 in extraParameters) {
if (parameters2.isNotEmpty) {
if (parameters2 != null && parameters2.isNotEmpty) {
val = findKeyPathValue(parameters2, varName);
if (val != null) break;
}
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: swiss_knife
description: Dart Useful Tools - collections, math, date, uri, json, events, resources, regexp, etc...
version: 3.0.1
version: 3.0.2
homepage: https://github.com/gmpassos/swiss_knife

environment:
Expand Down

0 comments on commit 9376e92

Please sign in to comment.