mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-09-14 23:47:00 +08:00
further specify the regex
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user