You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final _unquotableYamlString =RegExp(r'^[a-zA-Z_-][a-zA-Z_0-9-]*$');
/// The subset of strings that don't need quoting in YAML.
///
/// This pattern does not strictly follow the plain scalar grammar of YAML,
/// which means some strings may be unnecessarily quoted, but it's much simpler.
final _unquotableYamlString = RegExp(r'^[a-zA-Z_-][a-zA-Z_0-9-]*$');
We could consider using yaml_edit to write the pubspec.lock file
The text was updated successfully, but these errors were encountered:
Sometimes the content hash is quoted, sometimes not.
We use a quite naive yaml serialization for writing pubspec.lock.
Here is the regex that decides is a string needs to be json-encoded before serializing:
pub/lib/src/utils.dart
Line 511 in 2179b76
We could consider using yaml_edit to write the pubspec.lock file
The text was updated successfully, but these errors were encountered: