Skip to content

Commit 0575f38

Browse files
committed
Accept list
1 parent b871c41 commit 0575f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/check_caips.main.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ val config = CheckConfig("caip",
2222
"created" to { checkDate(it) }),
2323
mapOf(
2424
"requires" to {
25-
if (!Regex("[0-9]+(, [0-9]+)*").matches(it)) throw IllegalArgumentException("Invalid requires $it")
25+
if (!(Regex("\\[[0-9]+(, [0-9]+)*\\]").matches(it) || (Regex("[0-9]+").matches(it)))) throw IllegalArgumentException("Invalid requires $it")
2626
},
2727
"discussions-to" to { },
2828
"superseded-by" to { },

0 commit comments

Comments
 (0)