Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

loadMintIgnore mis-parses directory patterns without a leading slash

Open Beginner friendly
#1,819 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
85/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
javascript
Domain
documentation

Research direction

Start in scripts/lib/docs-utils.js at loadMintIgnore(), especially the directory-pattern branch that handles paths ending in /. Check that both /foo/ and foo/* preserve the same directory name, then verify that a slashless pattern such as draft-notes/* is ignored without a warning.

Written by the indexing model from the issue text.

Description

loadMintIgnore() handles directory patterns ending in /*, but it always removes the first character with slice(1, -2).

File evidence:

  • scripts/lib/docs-utils.js checks if (trimmed.endsWith('/*')).
  • That branch stores ignored.dirs.add(trimmed.slice(1, -2)), assuming the pattern starts with /.
  • The file-pattern branch immediately below supports both leading-slash and bare filenames, so a contributor can reasonably expect foo/* to work the same way as /foo/*.

For a slashless directory pattern such as draft-notes/*, the parser stores raft-notes, so the intended directory is not ignored and there is no warning.

Expected behavior: directory patterns should preserve the directory name whether they are written as /foo/* or foo/*.

Dominant language
JavaScript
Stars
337
Forks
798
Avg merge
13h 7m
Merged PRs (30d)
57

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from base/docs

All issues in base/docs

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.