Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Fix null inference weirdness (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe authored Aug 31, 2023
1 parent 416fccd commit 952483b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/config_provider/config_spec.dart
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ class StringConfigSpec<RE extends Object?> extends ConfigSpec<String, RE> {
if (!o.checkType<String>(log: log)) {
return false;
}
if (_regexp != null && !_regexp.hasMatch(o.value as String)) {
if (!(_regexp?.hasMatch(o.value as String) ?? true)) {
if (log) {
_logger.severe(
"Expected value of key '${o.pathString}' to match pattern $pattern (Input - ${o.value}).");
Expand Down

0 comments on commit 952483b

Please sign in to comment.