Skip to content

Commit

Permalink
Accept list
Browse files Browse the repository at this point in the history
  • Loading branch information
ligi committed Nov 23, 2022
1 parent b871c41 commit 0575f38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/check_caips.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ val config = CheckConfig("caip",
"created" to { checkDate(it) }),
mapOf(
"requires" to {
if (!Regex("[0-9]+(, [0-9]+)*").matches(it)) throw IllegalArgumentException("Invalid requires $it")
if (!(Regex("\\[[0-9]+(, [0-9]+)*\\]").matches(it) || (Regex("[0-9]+").matches(it)))) throw IllegalArgumentException("Invalid requires $it")
},
"discussions-to" to { },
"superseded-by" to { },
Expand Down

0 comments on commit 0575f38

Please sign in to comment.