huginn/huginn
GitHub で見るUsing an additional single quote in Liquid var causes process get stuck
Open
#2,584 opened on 2019年8月14日
bughelp wanted
説明
Monkey-patch added here broke liquid template parse.
Example:
string = {
"a": {
"type": "text",
"value": "{{ data['I'm using another single quote'] }}"
},
"b": {
"type": "text",
"value": "{{ data['some text'] }}"
}
}.to_json
Liquid::Template.parse(string)
or:
string = {
"a": {
"type": "text",
"value": "{{ data['I\'m using another single quote'] }}"
},
"b": {
"type": "text",
"value": "{{ data['some text'] }}"
}
}.to_json
Liquid::Template.parse(string)