Skip to content

Commit 00b609f

Browse files
committed
fixed some regexp issues that cause false positives
1 parent 72f87c3 commit 00b609f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

vale-styles/package-guide-test/PyPI.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,18 @@ action:
66
name: replace
77
# swap maps tokens in form of bad: good
88
swap:
9-
- (?:\spypi[\.,]?\s): PyPI # lower case defined as regex to prevent false positives in URLs
9+
# lower case defined as regex to prevent false positives in URLs or other identifiers
10+
- (?:\spypi[\.,]?\s): PyPI
11+
- (?:\stestpypi[\.,;:]?\s): TestPyPI
12+
- (?:\stest-pypi[\.,;:]?\s): TestPyPI
13+
# other tests are defined with strings
1014
- pyPi: PyPI
1115
- pyPI: PyPI
1216
- PYPI: PyPI
1317
- PyPi: PyPI
1418
- Pypi: PyPI
1519
- testPyPI: TestPyPI
16-
- testpypi: TestPyPI
1720
- testPYPI: TestPyPI
18-
- test-pypi: TestPyPI
1921
- TestPypi: TestPyPI
2022
- TestPYPI: TestPyPI
2123

0 commit comments

Comments
 (0)