unnecessary escapes fixes (#50178)

* unnecessary escapes fixes

* replace some strings with raw strings

* update regexp

* address review comments
This commit is contained in:
Alexandre Ardhuin
2020-02-07 06:35:50 +01:00
committed by GitHub
parent b8199abd15
commit 5c28e3eeea
19 changed files with 39 additions and 39 deletions

View File

@@ -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);