Skip to content

Commit ec70d0d

Browse files
committed
removes the bluetooth check as regex is wrong
1 parent 32f0fcf commit ec70d0d

File tree

1 file changed

+53
-53
lines changed

1 file changed

+53
-53
lines changed
Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
1-
# Bluetooth® rule
2-
- regex: "((?<![a-zA-Z]|[0-9])(?<=\\s)([bB]lueto{2}th)(?!®|[a-zA-Z]))|((?<![a-zA-Z]|[0-9])(?<=\\s)(blueto{2}th)(?=®))"
3-
regexModifiers: "gi"
4-
shouldMatch: false
5-
includeCodeBlocks: false
6-
format: markdown
7-
type: warning
8-
errorMessage: The Bluetooth® trademark is not used correctly.
9-
10-
# LoRa® / LoRaWAN® rule
11-
# Avoids false positives by excluding the word in conjunction with a dash (e.g. URLs) and as part of code)
12-
- regex: "((?<![a-zA-Z]|[0-9])(?<=\\s)((lora(?:WAN|\\sAlliance)?))(?!®|[a-zA-Z]))|((?<![a-zA-Z]|[0-9])(?<=\\s)((((?<=(Lora\\s|loRa\\s|lora\\s))Alliance)|(?<=(Lora|loRa|lora)[wW][aA][nN])))(?=®))"
13-
shouldMatch: false
14-
includeCodeBlocks: false
15-
format: markdown
16-
type: warning
17-
errorMessage: The LoRa® / LoRaWAN® trademark is not used correctly.
18-
19-
# USB-C® / USB Type-C® / USB4® rule
20-
- regex: "((?<![a-zA-Z]|[0-9])(?<=\\s)(?:USB-C|USB\\sType[-]C|USB4)(?!®|[a-zA-Z]))"
21-
regexModifiers: "gi"
22-
shouldMatch: false
23-
includeCodeBlocks: false
24-
format: markdown
25-
type: warning
26-
errorMessage: The USB-C® / USB Type-C® / USB4® trademark is not used correctly.
27-
28-
# Arduino Opta® rule
29-
- regex: "(?<!http[s]?:\\/\\/\\S*| - )(?<![a-zA-Z]|[0-9])(?<=\\s)(([oO]pta)(?!®|™|[a-zA-Z])|(((?<=[aA]rduino\\s)([oO]pta(?=™)))|((?<=[aA]rduino®\\s)([oO]pta))))"
30-
regexModifiers: "gi"
31-
shouldMatch: false
32-
includeCodeBlocks: false
33-
format: markdown
34-
type: warning
35-
errorMessage: The Arduino Opta® / Opta™ trademark is not used correctly.
36-
37-
# Edge Impulse® rule
38-
# Skip the match if it is inside tags' lists
39-
- regex: "(?<!http[s]?:\\/\\/\\S*| - )(?:Edge[ -]Impulse|[eE]dge[iI]mpulse)(?!®)\\b"
40-
regexModifiers: "gi"
41-
shouldMatch: false
42-
includeCodeBlocks: false
43-
format: markdown
44-
type: warning
45-
errorMessage: The Edge Impulse® trademark is not used correctly.
46-
47-
# MIPI® / A-PHY® / CSI-2® / I3C® / M-PHY® rule
48-
- regex: "((?<![a-zA-Z]|[0-9])((mipi)|((aphy)|(a-phy))|((csi2)|(csi-2))|(i3c)|((mphy)|(m-phy)))(?!®|[a-zA-Z]))|(([mM][iI][pP][i])|(([aA][pP][hH][yY])|([aA]-[pP][hH][y]))|(([cC][sS][iI]2)|([cC][sS][i]-2))|([iI]3[c])|(([mM][pP][hH][yY])|([mM]-[pP][hH][y])))(?=®)"
49-
regexModifiers: "gi"
50-
shouldMatch: false
51-
includeCodeBlocks: false
52-
format: markdown
53-
type: warning
1+
# Bluetooth® rule
2+
#- regex: "((?<![a-zA-Z]|[0-9])(?<=\\s)([bB]lueto{2}th)(?!®|[a-zA-Z]))|((?<![a-zA-Z]|[0-9])(?<=\\s)(blueto{2}th)(?=®))"
3+
# regexModifiers: "gi"
4+
# shouldMatch: false
5+
# includeCodeBlocks: false
6+
# format: markdown
7+
# type: warning
8+
# errorMessage: The Bluetooth® trademark is not used correctly.
9+
10+
# LoRa® / LoRaWAN® rule
11+
# Avoids false positives by excluding the word in conjunction with a dash (e.g. URLs) and as part of code)
12+
- regex: "((?<![a-zA-Z]|[0-9])(?<=\\s)((lora(?:WAN|\\sAlliance)?))(?!®|[a-zA-Z]))|((?<![a-zA-Z]|[0-9])(?<=\\s)((((?<=(Lora\\s|loRa\\s|lora\\s))Alliance)|(?<=(Lora|loRa|lora)[wW][aA][nN])))(?=®))"
13+
shouldMatch: false
14+
includeCodeBlocks: false
15+
format: markdown
16+
type: warning
17+
errorMessage: The LoRa® / LoRaWAN® trademark is not used correctly.
18+
19+
# USB-C® / USB Type-C® / USB4® rule
20+
- regex: "((?<![a-zA-Z]|[0-9])(?<=\\s)(?:USB-C|USB\\sType[-]C|USB4)(?!®|[a-zA-Z]))"
21+
regexModifiers: "gi"
22+
shouldMatch: false
23+
includeCodeBlocks: false
24+
format: markdown
25+
type: warning
26+
errorMessage: The USB-C® / USB Type-C® / USB4® trademark is not used correctly.
27+
28+
# Arduino Opta® rule
29+
- regex: "(?<!http[s]?:\\/\\/\\S*| - )(?<![a-zA-Z]|[0-9])(?<=\\s)(([oO]pta)(?!®|™|[a-zA-Z])|(((?<=[aA]rduino\\s)([oO]pta(?=™)))|((?<=[aA]rduino®\\s)([oO]pta))))"
30+
regexModifiers: "gi"
31+
shouldMatch: false
32+
includeCodeBlocks: false
33+
format: markdown
34+
type: warning
35+
errorMessage: The Arduino Opta® / Opta™ trademark is not used correctly.
36+
37+
# Edge Impulse® rule
38+
# Skip the match if it is inside tags' lists
39+
- regex: "(?<!http[s]?:\\/\\/\\S*| - )(?:Edge[ -]Impulse|[eE]dge[iI]mpulse)(?!®)\\b"
40+
regexModifiers: "gi"
41+
shouldMatch: false
42+
includeCodeBlocks: false
43+
format: markdown
44+
type: warning
45+
errorMessage: The Edge Impulse® trademark is not used correctly.
46+
47+
# MIPI® / A-PHY® / CSI-2® / I3C® / M-PHY® rule
48+
- regex: "((?<![a-zA-Z]|[0-9])((mipi)|((aphy)|(a-phy))|((csi2)|(csi-2))|(i3c)|((mphy)|(m-phy)))(?!®|[a-zA-Z]))|(([mM][iI][pP][i])|(([aA][pP][hH][yY])|([aA]-[pP][hH][y]))|(([cC][sS][iI]2)|([cC][sS][i]-2))|([iI]3[c])|(([mM][pP][hH][yY])|([mM]-[pP][hH][y])))(?=®)"
49+
regexModifiers: "gi"
50+
shouldMatch: false
51+
includeCodeBlocks: false
52+
format: markdown
53+
type: warning
5454
errorMessage: The MIPI® / A-PHY® / CSI-2® / I3C® / M-PHY® trademark owned by MIPI Alliance is not used correctly.

0 commit comments

Comments
 (0)