Fix null inference weirdness (#605)

diff --git a/lib/src/config_provider/config_spec.dart b/lib/src/config_provider/config_spec.dart
index c7ed406..3d67be9 100644
--- a/lib/src/config_provider/config_spec.dart
+++ b/lib/src/config_provider/config_spec.dart
@@ -591,7 +591,7 @@
     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}).");