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
If partId provided to the SharedPartBuilder doesn't meet regex validation, an error is thrown:
if (!_partIdRegExp.hasMatch(partId)) {
throwArgumentError.value(
partId,
'partId',
'`partId` can only contain letters, numbers, `_` and `.`. ''It cannot start or end with `.`.',
);
}
It states partId can contain a period, however, here's the regex:
const partIdRegExpLiteral =r'[A-Za-z_\d-]+';
final _partIdRegExp =RegExp('^$partIdRegExpLiteral\$');
As you can see, no period is allowed.
Either the error message or regex should be updated to be consistent.
The text was updated successfully, but these errors were encountered:
https://github.com/dart-lang/source_gen/blob/master/source_gen/lib/src/builder.dart
If
partId
provided to the SharedPartBuilder doesn't meet regex validation, an error is thrown:It states
partId
can contain a period, however, here's the regex:As you can see, no period is allowed.
Either the error message or regex should be updated to be consistent.
The text was updated successfully, but these errors were encountered: