small regex update

This commit is contained in:
2025-08-03 20:21:13 +02:00
parent 67d8dac8c0
commit 421a004667
+3 -1
View File
@@ -16,7 +16,9 @@ export default function Nominations() {
const [isLoading, setIsLoading] = useState(false); const [isLoading, setIsLoading] = useState(false);
const [message, setMessage] = useState(""); const [message, setMessage] = useState("");
const isSpotifyURL = const isSpotifyURL =
/^https:\/\/open\.spotify\.com\/track\/[a-zA-Z0-9]{22}/.test(songURL); /^https:\/\/open\.spotify\.com\/track\/[a-zA-Z0-9]{22}(\?.*)?$/.test(
songURL,
);
const { quota, setQuota } = useQuota(); const { quota, setQuota } = useQuota();
async function nominate(spotifyLink: string) { async function nominate(spotifyLink: string) {
try { try {