-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
This is an edge case (and there are ways around it) but consider the following example of a value that starts with a #
:
function myAction(opts) {
return this.lookup(opts)
}
chain
.myAction({
id: '!random'
, color: '#cccccc'
})
A couple of options offhand would be:
- Introduce a control character to escape e.g.
\#foo
,\!bar
- Provide a built-in function that just reflects the value e.g.
!literal("#ccc")
- At minimum this is a viable workaround, since quoted function arguments do not pass through
lookup
- At minimum this is a viable workaround, since quoted function arguments do not pass through
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed