Skip to content

Commit 3845ea8

Browse files
committed
fix(spell-check): expand URL scheme pattern to match documentation comment
The comment said the URL filter ignores 'http, https, ftp, etc.' but the regex only matched http and https. Expanded the pattern to match: - http/https (as before) - ftp/ftps (file transfer protocols) - ssh (secure shell) - file (local file URLs) Updated pattern: (?:https?|ftp|ftps|ssh|file)://[^\s\)\]>"]+ This ensures the filter matches the documented behavior. https://claude.ai/code/session_01TYWR7wb5MUkzjVsK4mtNjA
1 parent c6e2f09 commit 3845ea8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.ci/vale/styles/InfluxDataDocs/Spelling.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ filters:
2727
# Ignore URL paths (e.g., /api/v2/write, /kapacitor/v1/api/v2/tasks)
2828
# Matches: /path/to/endpoint, /v2.0/api/write, /influxdb/v1.8/cli
2929
- '/[a-zA-Z0-9/_\-\.\{\}]+'
30-
# Ignore full URLs (http, https, ftp, etc.)
31-
# Matches: https://docs.example.com, http://localhost:8086
32-
- 'https?://[^\s\)\]>"]+'
30+
# Ignore full URLs (http, https, ftp, ftps, ssh, file, etc.)
31+
# Matches: https://docs.example.com, http://localhost:8086, ftp://server.com, ssh://host
32+
- '(?:https?|ftp|ftps|ssh|file)://[^\s\)\]>"]+'
3333

3434
# === CODE IDENTIFIERS & VARIABLES ===
3535
# camelCase and snake_case identifiers (requires >=1 uppercase OR >=1 underscore)

0 commit comments

Comments
 (0)