Line data Source code
1 : // Copyright (c) 2021, the Dart project authors. Please see the AUTHORS file 2 : // for details. All rights reserved. Use of this source code is governed by a 3 : // BSD-style license that can be found in the LICENSE file. 4 : 5 : /// A regular expression matching a full string as a hyphenated identifier. 6 : /// 7 : /// This is like a standard Dart identifier, except that it can also contain 8 : /// hyphens. 9 0 : final anchoredHyphenatedIdentifier = RegExp(r'^[a-zA-Z_-][a-zA-Z0-9_-]*$');