Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(924)

Unified Diff: pkg/args/lib/args.dart

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/args/test/args_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | pkg/args/test/args_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698