Allow spaces in SDK path in flutter_tools tests (#14617)
The Flutter engine now supports package: and file: imports that resolve to paths on disk that include spaces and other URI-escaped characters. This patch eliminates the restriction that Dart source paths not include %20 (or other URI-escaped characters) in their paths in flutter_tool tests.
This commit is contained in:
parent
cb53e4e5aa
commit
fd6baba137
@ -32,7 +32,7 @@ String getFlutterRoot() {
|
||||
scriptUri = platform.script;
|
||||
break;
|
||||
case 'data':
|
||||
final RegExp flutterTools = new RegExp(r'(file://[^%]*[/\\]flutter_tools[^%]+\.dart)%');
|
||||
final RegExp flutterTools = new RegExp(r'(file://[^ ;]*[/\\]flutter_tools[^%]+\.dart)%');
|
||||
final Match match = flutterTools.firstMatch(platform.script.path);
|
||||
if (match == null)
|
||||
throw invalidScript();
|
||||
|
Loading…
x
Reference in New Issue
Block a user