We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b871c41 commit 0575f38Copy full SHA for 0575f38
.ci/check_caips.main.kts
@@ -22,7 +22,7 @@ val config = CheckConfig("caip",
22
"created" to { checkDate(it) }),
23
mapOf(
24
"requires" to {
25
- 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")
26
},
27
"discussions-to" to { },
28
"superseded-by" to { },
0 commit comments