Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 153020d

Browse files
committed
Linter: new rule for USB-C® / USB Type-C® / USB4® trademark
1 parent 9efb9e6 commit 153020d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1-
---
1+
# Bluetooth® rule
22
- regex: "(?:[bB]luetooth(?!®)|bluetooth)(?![-\\/]|\\.?\\S)"
33
shouldMatch: false
44
format: markdown
55
type: warning
66
errorMessage: The Bluetooth® trademark is not used correctly.
7-
87

8+
# LoRa® / LoRaWAN® rule
99
# Avoids false positives by excluding the word in conjunction with a dash (e.g. URLs) and as part of code)
1010
- regex: "(?<![-\\/])([lL]o[rR]a(?:WAN| Alliance)?)(?!®)(?![-\\/]|\\.?\\S)\\b"
1111
shouldMatch: false
1212
includeCodeBlocks: false
1313
format: markdown
1414
type: warning
1515
errorMessage: The LoRa® / LoRaWAN® trademark is not used correctly.
16+
17+
# USB-C® / USB Type-C® / USB4® rule
18+
- regex: "(?:[uU][sS][bB]-[cC]|[uU][sS][bB] [tT]ype[ -cC][cC]|[uU][sS][bB][4](?!®)|usb-c)(?![-\\/]|\\.?\\S)"
19+
shouldMatch: false
20+
includeCodeBlocks: false
21+
format: markdown
22+
type: warning
23+
errorMessage: The USB-C® / USB Type-C® / USB4® trademark is not used correctly.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /