small regex update
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user