Closed mfizz1 closed 1 year ago
The warning is correct. You miss the r
in the second line
RegExp(
r'(\s)'
r'?(foo|bar)(\s)?',
caseSensitive: false,
);
Without the r
you have to use \\
RegExp(
r'(\s)'
'?(foo|bar)(\\s)?',
caseSensitive: false,
);
My mistake! I thought with the line continuation, the r
from the first line would have been sufficient.
the third matching group
(\s)
is incorrectly identified asunecessary_string_escapes