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

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