Skip to content

Commit

Permalink
sets options default in function signature
Browse files Browse the repository at this point in the history
Co-authored-by: Brage Sekse Aarset <[email protected]>
  • Loading branch information
a-h-i and braaar authored Aug 26, 2022
1 parent 09d9e95 commit 3f05aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/isRgbColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const rgbColorPercent = /^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]
const rgbaColorPercent = /^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)/;
const startsWithRgb = /^rgba?/;

export default function isRgbColor(str, options) {
export default function isRgbColor(str, options = { includePercentValues: true, strict: true} ) {
assertString(str);
// remove spaces
let strict, includePercentValues;
Expand Down

0 comments on commit 3f05aa5

Please sign in to comment.