unnecessary escapes fixes (#50178)
* unnecessary escapes fixes * replace some strings with raw strings * update regexp * address review comments
This commit is contained in:
committed by
GitHub
parent
b8199abd15
commit
5c28e3eeea
@@ -292,7 +292,7 @@ class SvgPath {
|
||||
final List<SvgPathCommand> commands;
|
||||
final double opacity;
|
||||
|
||||
static const String _pathCommandAtom = ' *([a-zA-Z]) *([\-\.0-9 ,]*)';
|
||||
static const String _pathCommandAtom = r' *([a-zA-Z]) *([\-\.0-9 ,]*)';
|
||||
static final RegExp _pathCommandValidator = RegExp('^($_pathCommandAtom)*\$');
|
||||
static final RegExp _pathCommandMatcher = RegExp(_pathCommandAtom);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user