GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lib: remove redundant global regexps · nodejs/node@598fe04

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • internal/util
      • debuglog.js
    • url.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/util/debuglog.js‎

Copy file name to clipboardExpand all lines: lib/internal/util/debuglog.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ function formatTime(ms) {
173173
}
174174

175175
function safeTraceLabel(label) {
176-
return label.replace(/\\/g, '\\\\').replaceAll('"', '\\"');
176+
return label.replaceAll('\\', '\\\\').replaceAll('"', '\\"');
177177
}
178178

179179
/**
Collapse file

‎lib/url.js‎

Copy file name to clipboardExpand all lines: lib/url.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ Url.prototype.format = function format() {
705705
}
706706
}
707707

708-
search = search.replace(/#/g, '%23');
708+
search = search.replaceAll('#', '%23');
709709

710710
if (hash && hash.charCodeAt(0) !== CHAR_HASH)
711711
hash = '#' + hash;

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.