| Index: lib/src/utils.dart
|
| diff --git a/lib/src/utils.dart b/lib/src/utils.dart
|
| index 2ccef97f08de0af83ac924ae0badd8b6d0a9ed79..5f970dea83c48d48e708563dcff8827df498186d 100644
|
| --- a/lib/src/utils.dart
|
| +++ b/lib/src/utils.dart
|
| @@ -60,6 +60,17 @@ final OperatingSystem currentOSGuess = (() {
|
| return OperatingSystem.linux;
|
| })();
|
|
|
| +/// A regular expression matching a hyphenated identifier.
|
| +///
|
| +/// This is like a standard Dart identifier, except that it can also contain
|
| +/// hyphens.
|
| +final hyphenatedIdentifier = new RegExp(r"[a-zA-Z_-][a-zA-Z0-9_-]*");
|
| +
|
| +/// Like [hyphenatedIdentifier], but anchored so that it must match the entire
|
| +/// string.
|
| +final anchoredHyphenatedIdentifier =
|
| + new RegExp("^${hyphenatedIdentifier.pattern}\$");
|
| +
|
| /// A pair of values.
|
| class Pair<E, F> {
|
| E first;
|
|
|