fix: update comment for clarity on escaping special characters in replacement script

This commit is contained in:
Victor Santos
2025-12-12 12:48:15 -03:00
parent 93bfdcad28
commit 64f566076b

View File

@@ -10,7 +10,7 @@ fi
echo "Replacing pre-baked value.."
# Escape special characters in REPLACEMENT for sed to avoid regex issues and injection attacks
# Escape special characters in REPLACEMENT for sed to avoid syntax errors
ESCAPED_REPLACEMENT=$(printf '%s\n' "$REPLACEMENT" | sed 's/[\/&]/\\&/g')
# Replace in JS files in assets directory