We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5d052 commit 44564e5Copy full SHA for 44564e5
scripts/add_experimental_feature.py
@@ -13,8 +13,7 @@
13
import subprocess
14
15
def verify_kebab_case(input: str) -> bool:
16
- # kebab case regex from https://github.com/expandjs/expandjs/blob/master/lib/kebabCaseRegex.js
17
- kebab_case_re = r"^([a-z](?![\d])|[\d](?![a-z]))+(-?([a-z](?![\d])|[\d](?![a-z])))*$|^$"
+ kebab_case_re = r"[a-z0-9]+(?:-[a-z0-9]+)*"
18
pattern = re.compile(kebab_case_re)
19
if pattern.match(input) is None:
20
return False
0 commit comments