diff options
| author | Shinigami <[email protected]> | 2024-02-18 23:56:40 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-02-18 23:56:40 +0100 |
| commit | 52b8992cbf960e001336d59b83c610845ff35860 (patch) | |
| tree | c71db76f3f955a74be4cbcbaa56df77375cb4531 /src/modules/color | |
| parent | ec5609b18c79ea9fc8183ae78e917801e6a8a3f4 (diff) | |
| download | faker-52b8992cbf960e001336d59b83c610845ff35860.tar.xz faker-52b8992cbf960e001336d59b83c610845ff35860.zip | |
infra(unicorn): prefer-string-replace-all (#2653)
Diffstat (limited to 'src/modules/color')
| -rw-r--r-- | src/modules/color/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/color/index.ts b/src/modules/color/index.ts index a9b39377..67344597 100644 --- a/src/modules/color/index.ts +++ b/src/modules/color/index.ts @@ -89,7 +89,7 @@ function toBinary(values: number[]): string { const buffer = new ArrayBuffer(4); new DataView(buffer).setFloat32(0, value); const bytes = new Uint8Array(buffer); - return toBinary([...bytes]).replace(/ /g, ''); + return toBinary([...bytes]).replaceAll(' ', ''); } return (value >>> 0).toString(2).padStart(8, '0'); |
