-
Notifications
You must be signed in to change notification settings - Fork 30.5k
feat(validator): make isRgbColor() accept boolean in 2nd arg #74084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(validator): make isRgbColor() accept boolean in 2nd arg #74084
Conversation
|
@hkleungai Thank you for submitting this PR! This is a live comment that I will keep updated. 1 package in this PRCode ReviewsBecause this is a widely-used package, a DT maintainer will need to review it before it can be merged. You can test the changes of this PR in the Playground. Status
All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes. Diagnostic Information: What the bot saw about this PR{
"type": "info",
"now": "-",
"pr_number": 74084,
"author": "hkleungai",
"headCommitOid": "a7d92188a70e5009fcb885ba159a3f057febf1e6",
"mergeBaseOid": "454f2a588bd645b6eeaadffb78a7f45c1f62bf47",
"lastPushDate": "2025-11-14T18:44:28.000Z",
"lastActivityDate": "2025-11-17T21:20:39.000Z",
"mergeOfferDate": "2025-11-17T21:16:41.000Z",
"mergeRequestDate": "2025-11-17T21:20:39.000Z",
"mergeRequestUser": "WikiRik",
"hasMergeConflict": false,
"isFirstContribution": false,
"tooManyFiles": false,
"hugeChange": false,
"popularityLevel": "Critical",
"pkgInfo": [
{
"name": "validator",
"kind": "edit",
"files": [
{
"path": "types/validator/es/lib/isRgbColor.d.ts",
"kind": "definition"
},
{
"path": "types/validator/index.d.ts",
"kind": "definition"
},
{
"path": "types/validator/lib/isRgbColor.d.ts",
"kind": "definition"
},
{
"path": "types/validator/validator-tests.ts",
"kind": "test"
}
],
"owners": [
"tgfjt",
"chrootsu",
"IOAyman",
"louy",
"deptno",
"builtinnya",
"qqilihq",
"keatz55",
"vlapo",
"peterblazejewicz",
"Mattewn99",
"dcfreire",
"WikiRik"
],
"addedOwners": [],
"deletedOwners": [],
"popularityLevel": "Critical"
}
],
"reviews": [
{
"type": "approved",
"reviewer": "jakebailey",
"date": "2025-11-17T21:16:01.000Z",
"isMaintainer": true
},
{
"type": "approved",
"reviewer": "WikiRik",
"date": "2025-11-14T22:41:27.000Z",
"isMaintainer": false
}
],
"mainBotCommentID": 3534106764,
"ciResult": "pass"
} |
|
🔔 @tgfjt @chrootsu @IOAyman @louy @deptno @builtinnya @qqilihq @keatz55 @vlapo @peterblazejewicz @Mattewn99 @dcfreire @WikiRik — please review this PR in the next few days. Be sure to explicitly select |
|
@hkleungai: Everything looks good here. I am ready to merge this PR (at a7d9218) on your behalf whenever you think it's ready. If you'd like that to happen, please post a comment saying:
and I'll merge this PR almost instantly. Thanks for helping out! ❤️ (@tgfjt, @chrootsu, @IOAyman, @louy, @deptno, @builtinnya, @qqilihq, @keatz55, @vlapo, @peterblazejewicz, @Mattewn99, @dcfreire, @WikiRik: you can do this too.) |
|
Ready to merge |
See https://github.com/validatorjs/validator.js/blob/master/src/lib/isRgbColor.js.
Please fill in this template.
pnpm test <package to test>.Select one of these and delete the others:
If changing an existing definition: