Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#:pattern breaks when #:program is a list #9

Open
sarg opened this issue Aug 25, 2024 · 0 comments
Open

#:pattern breaks when #:program is a list #9

sarg opened this issue Aug 25, 2024 · 0 comments

Comments

@sarg
Copy link

sarg commented Aug 25, 2024

Given such association:

(assoc
 #:pattern "^video/.*"
 #:program '("mpv" "%f"))

jaro fails with:

In .../jaro:
   169:30  1 (helper _ _ _)
In ice-9/regex.scm:
     61:5  0 (match:count _)

ice-9/regex.scm:61:5: In procedure match:count:
In procedure vector-length: Wrong type argument in position 1 (expecting vector): #<unspecified>

That happens because jaro executes pattern for each element of #:program, but doesn't check that the regex matched anything. A workaround is to make wrap #:pattern in a list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant