diff options
Diffstat (limited to 'src/modules/color')
| -rw-r--r-- | src/modules/color/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/color/index.ts b/src/modules/color/index.ts index d64b7750..faa898d4 100644 --- a/src/modules/color/index.ts +++ b/src/modules/color/index.ts @@ -297,7 +297,10 @@ export class Color { let color: string | number[]; let cssFunction: CSSFunction = 'rgb'; if (format === 'hex') { - color = this.faker.datatype.hexadecimal({ length: includeAlpha ? 8 : 6 }); + color = this.faker.datatype.hexadecimal({ + length: includeAlpha ? 8 : 6, + prefix: '', + }); color = formatHexColor(color, options); return color; } |
