We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34242ff commit ef9e80dCopy full SHA for ef9e80d
lib/src/api/regexes.dart
@@ -125,6 +125,13 @@ final RegExp variablePathComposingRegex = RegExp(variablePathComposingPattern);
125
/// wrapped in ${} curly braces.
126
const String variableSyntaxIdentifierPattern = r'\${(?<value>.+)}';
127
128
+/// A regex that can match empty ${} syntax with partial match for curly braces.
129
+const String emptyVariableSyntaxIdentifierPattern = r'\${?}?';
130
+
131
+/// Regex for [emptyVariableSyntaxIdentifierPattern].
132
+final RegExp emptyVariableSyntaxIdentifierRegex =
133
+ RegExp(emptyVariableSyntaxIdentifierPattern);
134
135
/// Regex for [variableSyntaxIdentifierPattern].
136
final RegExp variableSyntaxIdentifierRegex =
137
RegExp(variableSyntaxIdentifierPattern);
0 commit comments