| Index: pkg/args/lib/args.dart
|
| diff --git a/pkg/args/lib/args.dart b/pkg/args/lib/args.dart
|
| index 12ea74549cc3ee87a4a9e8a06947ccc4af64b9c9..ad0d9071c7554904ab7f4b08437f2b86f6e049dd 100644
|
| --- a/pkg/args/lib/args.dart
|
| +++ b/pkg/args/lib/args.dart
|
| @@ -200,9 +200,9 @@ import 'src/utils.dart';
|
| * options and flags from them.
|
| */
|
| class ArgParser {
|
| - static final _SOLO_OPT = new RegExp(r'^-([a-zA-Z0-9])$');
|
| - static final _ABBR_OPT = new RegExp(r'^-([a-zA-Z0-9]+)(.*)$');
|
| - static final _LONG_OPT = new RegExp(r'^--([a-zA-Z\-_0-9]+)(=(.*))?$');
|
| + static const _SOLO_OPT = const RegExp(r'^-([a-zA-Z0-9])$');
|
| + static const _ABBR_OPT = const RegExp(r'^-([a-zA-Z0-9]+)(.*)$');
|
| + static const _LONG_OPT = const RegExp(r'^--([a-zA-Z\-_0-9]+)(=(.*))?$');
|
|
|
| final Map<String, _Option> _options;
|
|
|
|
|