Skip to content

Commit c78a115

Browse files
committed
Trademark rules update - for LoRa/LoRaWAN trademark compliance
1 parent 95cc49e commit c78a115

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

scripts/validation/rules/rules-trademarks.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,20 @@
99

1010
# LoRa® / LoRaWAN® rule
1111
# 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])))(?=®))"
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+
# LoRa® rule (Post February, 2025 - Use of LoRaWAN® is not allowed)
20+
- regex: "(?<![a-zA-Z0-9])(?<=\\s)(lora)(?!®|[a-zA-Z0-9])(?!.*\\1®)|(?<![a-zA-Z0-9])(?<=\\s)(lorawan)(?![a-zA-Z0-9])"
1321
shouldMatch: false
1422
includeCodeBlocks: false
1523
format: markdown
1624
type: warning
17-
errorMessage: The LoRa® / LoRaWAN® trademark is not used correctly.
25+
errorMessage: The LoRa® trademark is not used correctly or the first occurrence of LoRa® must include the ® symbol. LoRaWAN should not be used.
1826

1927
# USB-C® / USB Type-C® / USB4® rule
2028
- regex: "((?<![a-zA-Z]|[0-9])(?<=\\s)(?:USB-C|USB\\sType[-]C|USB4)(?!®|[a-zA-Z]))"

0 commit comments

Comments
 (0)