Gabriella439 / Gabriella439/turtle

Pattern for `find` requires search directory prefix

Open
#387 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
978
Forks
94
PR merge metrics
No merged PRs in 30d

Description

Reporting this as a note. @Gabriel439 remind me to put a PR in for this sometime. Here's the problem:

```
find (decimal *> ".md") "./md"
````
Is my first intuition for searching for all markdown files with a decimal only name in a given directory. However this Pattern fails because it is required to match the entire path. However, the following works

```
find ("./md/" *> decimal *> ".md") "./md"
```
This seems counter-intuitive to what find should be doing: matching against only the basename of a file as apposed to the relative path from the CWD.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.