We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd3c25c commit eef06f7Copy full SHA for eef06f7
lib/internal/util/debuglog.js
@@ -173,7 +173,7 @@ function formatTime(ms) {
173
}
174
175
function safeTraceLabel(label) {
176
- return label.replace(/\\/g, '\\\\').replaceAll('"', '\\"');
+ return label.replaceAll('\\', '\\\\').replaceAll('"', '\\"');
177
178
179
/**
lib/url.js
@@ -704,7 +704,7 @@ Url.prototype.format = function format() {
704
705
706
707
- search = search.replace(/#/g, '%23');
+ search = search.replaceAll('#', '%23');
708
709
if (hash && hash.charCodeAt(0) !== CHAR_HASH)
710
hash = '#' + hash;
0 commit comments