1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00

Add core.strip_escapes() (#16485)

This commit is contained in:
sfan5 2025-09-14 23:01:43 +02:00 committed by GitHub
parent cc6b56b034
commit d932f34693
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 52 additions and 17 deletions

View file

@ -182,7 +182,7 @@ local function format_statistics(profile, format, filter, enable_translation)
formatter:format(filter)
local out = formatter:flush()
if not enable_translation then
out = core.get_translated_string("en", out)
out = core.strip_escapes(out)
end
return out
end