Skip to content

Commit

Permalink
Fix more naming areas
Browse files Browse the repository at this point in the history
  • Loading branch information
daegalus committed Jul 29, 2024
1 parent 991218c commit 077dfb9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void main() {
// -> '110ec58a-a0f2-4ac4-8393-c866d813b8d1'

// Generate a v5 (namespace-name-sha1-based) id
var v5 = uuid.v5(Namespace.URL.value, 'www.google.com');
var v5 = uuid.v5(Namespace.url.value, 'www.google.com');
// -> 'c74a196f-f19d-5ea9-bffd-a2742432fc9c'

// Generate a v6 (time-based) id
Expand Down
2 changes: 1 addition & 1 deletion lib/v5.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class UuidV5 {
// If useRandom is true, generate UUIDv4, else use NIL
var blankNS = useRandom
? UuidV4(goptions: goptions).generate(options: options?.v4options)
: Namespace.NIL.value;
: Namespace.nil.value;

// Use provided namespace, or use whatever is decided by options.
namespace = (namespace != null) ? namespace : blankNS;
Expand Down
2 changes: 1 addition & 1 deletion lib/validation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class UuidValidation {
fromString = UuidParsing.unparse(fromByteList);
}
// UUID of all 0s is ok.
if (fromString == Namespace.NIL.value) {
if (fromString == Namespace.nil.value) {
return true;
}

Expand Down

0 comments on commit 077dfb9

Please sign in to comment.