Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexanx committed Mar 26, 2024
1 parent d5ad21f commit 29030f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/_helpers/text.dm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
return sanitize(replace_characters(input, list(">"=" ","<"=" ", "\""="'")), max_length, encode, trim, extra)

//Filters out undesirable characters from names
/proc/sanitizeName(input, max_length = MAX_NAME_LEN, allow_numbers = 1, force_first_letter_uppercase = TRUE)
/proc/sanitizeName(input, max_length = MAX_NAME_LEN, allow_numbers = 0, force_first_letter_uppercase = TRUE)
if(!input || length_char(input) > max_length)
return //Rejects the input if it is null or if it is longer then the max length allowed

Expand Down
5 changes: 4 additions & 1 deletion code/modules/culture_descriptor/culture/cultures_ipc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@
LANGUAGE_SIGN
)
economic_power = 0.1
*/
// [SIERRA-REMOVE]
/singleton/cultural_info/culture/ipc/sanitize_name(new_name)
return sanitizeName(new_name, allow_numbers = 1)

// [SIERRA-REMOVE] - IPC_MODS
/*
/singleton/cultural_info/culture/ipc/gen2
name = CULTURE_POSITRONICS_GEN2
description = "Second generation positronics are the most common kind of positronic. They are roughly as intelligent \
Expand Down

0 comments on commit 29030f7

Please sign in to comment.