Skip to content

Commit

Permalink
[Fix] Modify the pattern in nonStrict mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
boris authored and daegalus committed Aug 6, 2021
1 parent 0e8f36b commit 195e6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/uuid.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Uuid {
case ValidationMode.nonStrict:
{
const pattern =
r'^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$';
r'^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[0-9a-f]{4}-[0-9a-f]{12}$';
final regex = RegExp(pattern, caseSensitive: false, multiLine: true);
final match = regex.hasMatch(fromString);
return match;
Expand Down

0 comments on commit 195e6cd

Please sign in to comment.