-
Notifications
You must be signed in to change notification settings - Fork 125
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
WORKS
JSLT
def remove_html(text)
replace($text, "</?h3\\s?[^>]*>", "")
{
"title" : remove_html(.html)
}
INPUT
{"html": "<h3>hello</h3>"}
DOES NOT WORK
JSLT
def remove_html(text)
replace($text, "</?h3\\s?[^>]*>", "")
[for (.) {
"title" : remove_html(.html)
}]
INPUT
[{"html": "<h3>hello</h3>"}]
BLOWS CHUNKS...
ERROR: com.schibsted.spt.data.jslt.JsltException: Parse error: Encountered " "for" "for "" at line 4, column 2.
Was expecting one of:
"null" ...
<INTEGER> ...
<DECIMAL> ...
<STRING> ...
"[" ...
":" ...
"{" ...
"true" ...
"false" ...
"." ...
"if" ...
"(" ...
<IDENT> ...
<PIDENT> ...
<VARIABLE> ...
at <inline>:4:1
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working