further specify the regex

fix
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
1 changed files with 1 additions and 1 deletions

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