Skip to content

Commit c61d5b8

Browse files
committed
AutoComplete #2
1 parent 340e611 commit c61d5b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/api/regexes.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ final RegExp variablePathRegex = RegExp(variablePathPattern);
123123
/// on $ or ${} curly braces in a string while the text/path is actively being
124124
/// composed.
125125
const String variablePathComposingPattern =
126-
r'(?<!\\)\$\{?(?<value>(?<name>[a-zA-Z][a-zA-Z0-9_]*)((?<accessor>(?:\[\d+\])+)?(?:\.(?<path>[a-zA-Z]+[a-zA-Z0-9_]*(?:\[\d+\])*))*)?)?\}?';
126+
r'(?<!\\)\$\{?(?<value>(?<name>[a-zA-Z][a-zA-Z0-9_]*)((?<accessor>(?:\[\d+\])+)?(?:\.(?!\.)(?<path>[a-zA-Z]+[a-zA-Z0-9_]*(?:\[\d+\])*)?)*)?)?\}?';
127127

128128
/// Regex for [variablePathComposingPattern].
129129
final RegExp variablePathComposingRegex = RegExp(variablePathComposingPattern);

0 commit comments

Comments
 (0)