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.
\w
1 parent 63a13b6 commit 5211c2aCopy full SHA for 5211c2a
src/AutoMerge/guidelines.jl
@@ -384,7 +384,10 @@ const guideline_normal_capitalization = Guideline(;
384
)
385
386
function meets_normal_capitalization(pkg)
387
- meets_this_guideline = occursin(r"^[A-Z]\w*[a-z]\w*[0-9]?$", pkg)
+ # We intentionally do not use `\w` in this regex.
388
+ # `\w` includes underscores, but we don't want to include underscores.
389
+ # So, instead of `\w`, we use `[A-Za-z0-9]`.
390
+ meets_this_guideline = occursin(r"^[A-Z][A-Za-z0-9]*[a-z][A-Za-z0-9]*[0-9]?$", pkg)
391
if meets_this_guideline
392
return true, ""
393
else
0 commit comments