We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de0b86d commit 1c606ebCopy full SHA for 1c606eb
lib/src/guid.dart
@@ -51,8 +51,8 @@ class Guid {
51
if (input.length < 32) {
52
throw new FormatException("The format is invalid");
53
}
54
- input = input.toLowerCase();
55
- final isValid = input.replaceAll("-", "").codeUnits.every(
+ input = input.toLowerCase().replaceAll("-", "");
+ final isValid = input.codeUnits.every(
56
(unit) => (48 <= unit && unit <= 57) || (95 <= unit && unit <= 102));
57
if (!isValid) {
58
throw new FormatException("The format is invalid: " + input);
0 commit comments