| Index: utils/pub/io.dart
|
| diff --git a/utils/pub/io.dart b/utils/pub/io.dart
|
| index 3c8269396148bd8ee76955623be6c49bee5d0761..e89bf956f90a71bfa2c60e462eb455a32871107e 100644
|
| --- a/utils/pub/io.dart
|
| +++ b/utils/pub/io.dart
|
| @@ -21,7 +21,7 @@ String _gitCommandCache;
|
| /** Gets the current working directory. */
|
| String get currentWorkingDir => new File('.').fullPathSync();
|
|
|
| -final NEWLINE_PATTERN = new RegExp("\r\n?|\n\r?");
|
| +const Pattern NEWLINE_PATTERN = const RegExp("\r\n?|\n\r?");
|
|
|
| /**
|
| * Prints the given string to `stderr` on its own line.
|
| @@ -382,7 +382,7 @@ String getFullPath(entry) {
|
| if (Platform.operatingSystem == 'windows') {
|
| // An absolute path on Windows is either UNC (two leading backslashes),
|
| // or a drive letter followed by a colon and a slash.
|
| - var ABSOLUTE = new RegExp(r'^(\\\\|[a-zA-Z]:[/\\])');
|
| + const ABSOLUTE = const RegExp(r'^(\\\\|[a-zA-Z]:[/\\])');
|
| if (ABSOLUTE.hasMatch(path)) return path;
|
| } else {
|
| if (path.startsWith('/')) return path;
|
|
|