[raffle] Fix: Raffle channel did not allow underscore in channel name

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2024-12-02 13:08:18 +01:00
parent 0d76c58ede
commit dd80433cb0
Signed by: luzifer
SSH key fingerprint: SHA256:/xtE5lCgiRDQr8SLxHMS92ZBlACmATUmF1crK16Ks4E

View file

@ -1127,7 +1127,7 @@ export default {
}, },
validateRaffleChannel() { validateRaffleChannel() {
if (!/^[a-zA-Z0-9]{4,25}$/.test(this.models.raffle.channel)) { if (!constants.REGEXP_USER.test(this.models.raffle.channel)) {
return false return false
} }
return null return null