aboutsummaryrefslogtreecommitdiff
path: root/src/modules/string/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/string/index.ts')
-rw-r--r--src/modules/string/index.ts2
1 files changed, 2 insertions, 0 deletions
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);
}