Skip to content

Commit 1c606eb

Browse files
fix bug
- remove dash
1 parent de0b86d commit 1c606eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/guid.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ class Guid {
5151
if (input.length < 32) {
5252
throw new FormatException("The format is invalid");
5353
}
54-
input = input.toLowerCase();
55-
final isValid = input.replaceAll("-", "").codeUnits.every(
54+
input = input.toLowerCase().replaceAll("-", "");
55+
final isValid = input.codeUnits.every(
5656
(unit) => (48 <= unit && unit <= 57) || (95 <= unit && unit <= 102));
5757
if (!isValid) {
5858
throw new FormatException("The format is invalid: " + input);

0 commit comments

Comments
 (0)