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.
2 parents b8260b8 + 4845a00 commit 5c7c992Copy full SHA for 5c7c992
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