We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1563665 commit 253d655Copy full SHA for 253d655
src/components/SettingsDialog.tsx
@@ -50,7 +50,7 @@ export const SettingsDialog: React.FC<{
50
};
51
52
const keyIsValid = (key: string | undefined) => {
53
- const pattern = /^sk-[a-zA-Z0-9]{48}$/;
+ const pattern = /^(sk-[a-zA-Z0-9]{48}|[a-fA-F0-9]{32})$/;
54
return key && pattern.test(key);
55
56
0 commit comments