Twice the limits for entities values on CJK

Hopefully solves #1884
This commit is contained in:
Edward Firmo
2024-03-13 09:18:44 +01:00
parent b02f3c080a
commit fc2bd3d40b

View File

@@ -18,7 +18,7 @@ substitutions:
temp_units: "°C"
invalid_cooldown: "100ms"
##### DON'T CHANGE THIS ######
version: "4.3.0"
version: "4.3.1d1"
##############################
##### External components #####
@@ -808,7 +808,7 @@ api:
// Iterate over each character in the string
for (char const &c: value) {
// Check if character is a space or other specified exceptions
if (std::string(" iljtIf'-,;:!.\"|()[]{}").find(c) != std::string::npos) {
if (display_charset->state == 2 or std::string(" iljtIf'-,;:!.\"|()[]{}").find(c) != std::string::npos) {
adjusted_length += 0.5; // Count these as half
} else {
adjusted_length += 1.0; // Count all other characters as 1