Using `winget` to get the text of an input box as json results in the string being duplicated. This only applies in the `as json` case, and not in `as json-dm`
Numbered Steps to Reproduce Problem:
1. Add a button and input to a DMF
2. Set button command = "wingetverbtest \"[[wingetinputtest.text as json]]\""
3. Add a verb which prints raw input to world.log
4. Put some text in the input
5. text is duplicated
Code Snippet (if applicable) to Reproduce Problem:
verb/wingettextverb(var/rawtext as command_text)
world.log << "text: [rawtext]"
and in DMF:
window "wingetwindow"
elem "wingetwindow"
type = MAIN
size = 200x100
title = "winget test"
is-visible = true
elem "wingetinput"
type = INPUT
pos = 0,0
size = 200,20
text = "this is some test text"
elem "wingetbuttonjson"
type = BUTTON
pos = 0,20
text = "as json"
command = "wingettextverb \"json: [[wingetinput.text as json]]\""
Expected Results:
Not really sure tbh, the docs don't really say what to expect that's why I was doing this.
Actual Results:
text: "this is some test text""this is some test text"
Does the problem occur:
Every time? Or how often? Every time
In other games? N/A
In other user accounts? N/A
On other computers? ?
When does the problem NOT occur? ?
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Workarounds: