Skip to content

Commit

Permalink
fix: check for min length 3 in namespace and name (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qubus0 authored Mar 30, 2023
1 parent 41b1801 commit 80fea72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/mod_loader/classes/mod_manifest.gd
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ static func is_mod_id_valid(original_mod_id: String, check_mod_id: String, type
var check_namespace = split[0]
var check_name = split[1]
var re := RegEx.new()
re.compile("^[a-zA-Z0-9_]*$") # alphanumeric and _
re.compile("^[a-zA-Z0-9_]{3,}$") # alphanumeric and _ and at least 3 characters

if re.search(check_namespace) == null:
if not is_silent:
Expand Down

0 comments on commit 80fea72

Please sign in to comment.