Skip to content

Commit d7f324f

Browse files
committed
Fix Regex Documentation Warning
- Angle brackets break HTML, replace with unicode.
1 parent 1eb0f07 commit d7f324f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/src/api/regexes.dart

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,20 @@
8282
/// ============================================================================
8383
/// Regex explanation:
8484
/// ============================================================================
85-
/// (?<!\\) # Negative lookbehind to ensure "${" is not escaped.
85+
/// (?&lt;!\\) # Negative lookbehind to ensure "${" is not escaped.
8686
/// \$\{ # Matches the starting "${" literal
87-
/// (?<value> # Named capture group "value" for the entire variable expression:
88-
/// (?<name> # Named capture group "name" for the variable name:
87+
/// (?&lt;value&gt; # Named capture group "value" for the entire variable expression:
88+
/// (?&lt;name&gt; # Named capture group "name" for the variable name:
8989
/// [a-zA-Z] # Matches a single alphabet character
9090
/// [a-zA-Z0-9_]* # Matches zero or more alphanumeric characters or underscores
9191
/// ) # End of the named capture group "name"
9292
/// (
93-
/// (?<accessor> # Named capture group "accessor" for array access:
93+
/// (?&lt;accessor&gt; # Named capture group "accessor" for array access:
9494
/// (?:\[\d+\])+ # Non-capturing group for multiple occurrences of digits surrounded by square brackets
9595
/// |
9696
/// (?: # Non-capturing group for nested path access:
9797
/// \. # Matches a dot (for nested properties)
98-
/// (?<path> # Named capture group "path" for nested property name:
98+
/// (?&lt;path&gt; # Named capture group "path" for nested property name:
9999
/// [a-zA-Z]+ # Matches one or more alphabet characters
100100
/// [a-zA-Z0-9_]* # Matches zero or more alphanumeric characters or underscores
101101
/// (?: # Non-capturing group for optional array access:
@@ -155,7 +155,7 @@ final RegExp variableSyntaxIdentifierRegex =
155155
///
156156
/// (?<!\\) # Negative lookbehind to ensure "${" is not escaped.
157157
/// \$\{? # Matches the starting "${" literal (optional)
158-
/// (?<name> # Named capture group "name" for the variable name:
158+
/// (?&lt;name&gt; # Named capture group "name" for the variable name:
159159
/// [a-zA-Z]+ # Matches one or more alphabet characters
160160
/// [a-zA-Z0-9_]* # Matches zero or more alphanumeric characters or underscores
161161
/// ) # End of the named capture group "name"

0 commit comments

Comments
 (0)