further specify the regex

This commit is contained in:
Frank Elsinga 2025-05-25 22:09:49 +02:00 committed by GitHub
parent 21620bc7af
commit c568a141e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,7 +10,7 @@ const path = require("path");
let gameResolver = new GameResolver();
let gameList = null;
const LANGUAGE_REGEX = /^[a-zA-Z0-9-_]+$/;
const LANGUAGE_REGEX = /^[a-z]{2,3}(-[A-Z]{2,})?$/;
/**
* Get a game list via GameDig