Skip to content

Commit 8dc2dbf

Browse files
authored
fix: allow 2-letter topics in pubspec.yaml (#5288)
1 parent 516058b commit 8dc2dbf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/schemas/json/pubspec.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
"maxItems": 5,
306306
"items": {
307307
"type": "string",
308-
"pattern": "^[a-z][a-z0-9-]{1,30}[a-z0-9]$"
308+
"pattern": "^[a-z][a-z0-9-]{0,30}[a-z0-9]$"
309309
},
310310
"examples": [
311311
["network", "http"],

src/test/pubspec/pubspec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ repository: https://example.com/repo.git
66
version: 0.3.1-foobar.2.0
77
publish_to: 'none'
88
topics:
9+
- ui
910
- yaml
1011

1112
environment:

0 commit comments

Comments
 (0)