Skip to content

Commit

Permalink
Update debug.js
Browse files Browse the repository at this point in the history
  • Loading branch information
arpu committed Apr 8, 2024
1 parent 07e6fd0 commit c2e15bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ function formatArgs(args) {
return;
}
this.color = getDebugNamespaceColor(this.namespace);
const c = 'color: ' + this.color;
var c = 'color: ' + this.color;
args.splice(1, 0, c, 'color: inherit');

// The final "%c" is somewhat tricky, because there could be other
// arguments passed either before or after the %c, so we need to
// figure out the correct index to insert the CSS into
let index = 0;
let lastC = 0;
var index = 0;
var lastC = 0;
args[0].replace(/%[a-zA-Z%]/g, (match) => {

Check failure on line 39 in src/utils/debug.js

View workflow job for this annotation

GitHub Actions / Test Cases (20.x, latest)

Parsing error: Unexpected token >
if (match === '%%') {
return;
Expand Down

0 comments on commit c2e15bf

Please sign in to comment.