Skip to content

Commit

Permalink
site: fix ansi coloring for dim
Browse files Browse the repository at this point in the history
  • Loading branch information
CanadaHonk committed Jan 12, 2025
1 parent 006eabb commit b924d02
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@
.ansi-33 {
color: rgb(193, 156, 0);
}
.ansi-90 {
.ansi-2, .ansi-90 {
color: rgb(118, 118, 118);
}

Expand Down Expand Up @@ -1167,7 +1167,7 @@ <h2 class="gui-header">Playground</h2>

jsSize.textContent = `${new Blob([code]).size} bytes`;

const ansi = x => x.replaceAll('\x1B[0m', '</span>').replace(/\x1B\[([0-9]{2})m/g, (_, esc) => `<span class='ansi-${esc}'>`);
const ansi = x => x.replaceAll('\x1B[0m', '</span>').replace(/\x1B\[([0-9]{1,2})m/g, (_, esc) => `<span class='ansi-${esc}'>`);

let cache = '';
const print = (str) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "porffor",
"description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
"version": "0.55.15",
"version": "0.55.16",
"author": "CanadaHonk",
"license": "MIT",
"scripts": {},
Expand Down
2 changes: 1 addition & 1 deletion runner/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import fs from 'node:fs';
globalThis.version = '0.55.15';
globalThis.version = '0.55.16';

// deno compat
if (typeof process === 'undefined' && typeof Deno !== 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion test262/history.json

Large diffs are not rendered by default.

0 comments on commit b924d02

Please sign in to comment.