Skip to content

Allow tilde in patterns#50

Merged
hmarr merged 2 commits into
hmarr:mainfrom
xNoga:main
Jul 17, 2026
Merged

Allow tilde in patterns#50
hmarr merged 2 commits into
hmarr:mainfrom
xNoga:main

Conversation

@xNoga

@xNoga xNoga commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

This pull request makes a minor update to pattern parsing by allowing the tilde character ~ in patterns. It also adds a corresponding test to ensure this new behavior is covered.

  • Pattern Parsing Update:

    • Allowed the tilde character ~ as a valid pattern character in the isPatternChar function in parse.go.
  • Testing:

    • Added a test case in parse_test.go to verify that patterns containing ~ are parsed correctly.

Reference:
Same as #37.
Also, the tilde character is accepted by GitHub CODEOWNERS format.

@hmarr
hmarr merged commit 9b2b808 into hmarr:main Jul 17, 2026
@hmarr

hmarr commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Thanks for this! Sorry for taking so long to merge

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

Successfully merging this pull request may close these issues.

2 participants