Skip to content

Commit

Permalink
wrap string variables in quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
amunger committed Jan 19, 2024
1 parent 0621803 commit aa8f2e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def truncateString(string):

def getValue(variable, nested=False):
if _VSCODE_builtins.type(variable) == _VSCODE_builtins.str:
return truncateString(variable)
return f"'{truncateString(variable)}'"
elif (
_VSCODE_builtins.type(variable) == _VSCODE_builtins.int
or _VSCODE_builtins.type(variable) == _VSCODE_builtins.float
Expand Down

0 comments on commit aa8f2e4

Please sign in to comment.