Update package inclusion policy (#601)

Fixes #566, fixes #222
This commit is contained in:
rubenwardy
2025-07-03 12:16:11 +01:00
committed by GitHub
parent cbb59e5e55
commit e754d8d80d
2 changed files with 76 additions and 59 deletions

View File

@@ -25,7 +25,7 @@ from .config import parse_conf
from .translation import Translation, parse_tr
basenamePattern = re.compile("^([a-z0-9_]+)$")
licensePattern = re.compile("^(licen[sc]e|copying)(.[^/\n]+)?$", re.IGNORECASE)
licensePattern = re.compile("^licen[sc]e[^/.]*(\.(txt|md))?$", re.IGNORECASE)
DISALLOWED_NAMES = {
"core", "minetest", "group", "table", "string", "lua", "luajit", "assert", "debug",