Skip to content

Commit ee0aa87

Browse files
committed
Update CONTRIBUTING.md
1 parent c7bcfd5 commit ee0aa87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CONTRIBUTING.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ Sub/Folder/fna.dll
2424

2525
If the rule is written correctly, it should match both of these filenames.
2626

27+
Prefer making regex rules that end with a clean extension name, because we optimize them. For example:
28+
29+
- One: `\.dll$`
30+
- Multiple: `\.(?:dylib|dll|so)$`
31+
2732
Then add some lines to [`tests/types/_NonMatchingTests.txt`](tests/types/_NonMatchingTests.txt) with this content:
2833

2934
```

0 commit comments

Comments
 (0)