Skip to content

Commit

Permalink
Merge pull request #785 from tomguluson92/main
Browse files Browse the repository at this point in the history
fixs: uuid compatible for number
  • Loading branch information
lalalune authored Dec 2, 2024
2 parents 5bc6214 + 942271a commit 539d2b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/uuid.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { sha1 } from "js-sha1";
import { UUID } from "./types.ts";

export function stringToUuid(target: string): UUID {
export function stringToUuid(target: string | number): UUID {
if (typeof target === "number") {
target = (target as number).toString();
}
Expand Down

0 comments on commit 539d2b2

Please sign in to comment.