bugfix: esc

This commit is contained in:
2025-06-16 13:47:04 +02:00
parent 83beaa3ad5
commit caec86c5a0
7 changed files with 9 additions and 27 deletions

View File

@@ -8,16 +8,15 @@
# Functions
# escape
# Escape string to be used as content.
#
# @input str: Content string
# @return: Escaped string
function escape(str)
{
gsub("\\\\", "\\\\", str)
gsub(";", "\\\\;", str)
gsub(",", "\\\\,", str)
gsub("\\\\", "\\\\", str)
gsub(";", "\\;", str)
gsub(",", "\\,", str)
return str
}