From 2d93e6f14a5ba976f87b71202bc4e011e38ee823 Mon Sep 17 00:00:00 2001 From: Shinigami Date: Sat, 31 Dec 2022 12:22:38 +0100 Subject: chore: turn on padding-line-between-statements (#1691) --- src/modules/string/index.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules/string/index.ts') diff --git a/src/modules/string/index.ts b/src/modules/string/index.ts index 32f76b72..ab16dc34 100644 --- a/src/modules/string/index.ts +++ b/src/modules/string/index.ts @@ -91,6 +91,7 @@ export class StringModule { if (name === 'constructor' || typeof this[name] !== 'function') { continue; } + this[name] = this[name].bind(this); } } @@ -440,6 +441,7 @@ export class StringModule { const value = placeholder === 'x' ? random : (random & 0x3) | 0x8; return value.toString(16); }; + return RFC4122_TEMPLATE.replace(/[xy]/g, replacePlaceholders); } -- cgit v1.2.3