Skip to content

Commit 253d655

Browse files
committed
fix: key validate
1 parent 1563665 commit 253d655

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/SettingsDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const SettingsDialog: React.FC<{
5050
};
5151

5252
const keyIsValid = (key: string | undefined) => {
53-
const pattern = /^sk-[a-zA-Z0-9]{48}$/;
53+
const pattern = /^(sk-[a-zA-Z0-9]{48}|[a-fA-F0-9]{32})$/;
5454
return key && pattern.test(key);
5555
};
5656

0 commit comments

Comments
 (0)