We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8260b8 commit 4845a00Copy full SHA for 4845a00
addons/block_code/ui/blocks/utilities/parameter_input/parameter_input.gd
@@ -58,7 +58,7 @@ func get_string() -> String:
58
var text: String = get_plain_text()
59
60
if block_type == Types.BlockType.STRING:
61
- text = "'%s'" % text
+ text = "'%s'" % text.replace("\\", "\\\\").replace("'", "\\'")
62
if block_type == Types.BlockType.VECTOR2:
63
text = "Vector2(%s)" % text
64
0 commit comments