m9dfukc / deepl-alfred-workflow

DeepL translations for Alfred
MIT License
75 stars 3 forks source link

Single quotes in the query aren't supported #1

Closed am-jo-zt closed 6 years ago

am-jo-zt commented 6 years ago

Expected behaviour:

Should receive translation.

Actual behaviour:

Workflow quits, with following error message:

[2017-10-19 10:34:20][ERROR: input.scriptfilter] Code 254: Parse error: parse error in Command line code on line 7
[2017-10-19 10:34:20][ERROR: input.scriptfilter] JSON error: JSON text did not start with array or object and option to allow fragments not set. in JSON:

Steps to reproduce:

Open Alfred and enter dl it's lunch time

m9dfukc commented 6 years ago

Fixed with https://github.com/m9dfukc/deepl-alfred-workflow/commit/2dcd1df951d2f451a52c0ea6dafce201c063079b