z-pattern-matching/z

Multi-Character global condition match failure

Open

#61 opened on Jan 28, 2020

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (78 forks)batch import
bughelp wanted

Repository metrics

Stars
 (1,714 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

I'm running into what may be a conceptual issue rather than an actual issue. Are multi-character match variables supported?

E.g.

let string = "test"; match(string)( (s) => { console.log(s); } )

Executes as expected logging

test

but

let string = "test"; match(string)( (str) => { console.log(str); } )

generates no output.

Contributor guide