Skip to content

Commit 999c944

Browse files
4RH1T3CT0R7claude
andcommitted
Сайт: обычные дефисы вместо юникодных
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 2703a1c commit 999c944

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><text y='13' font-size='13'>🔤</text></svg>">
7-
<title>DOOM on regex find &amp; replace as a computer</title>
7+
<title>DOOM on regex - find &amp; replace as a computer</title>
88
<style>
99
:root {
1010
--bg: #0d0b0a; --panel: #171310; --panel2: #1f1a15;
@@ -208,7 +208,7 @@ <h2 data-i="h_honest"></h2>
208208
const I18N = {
209209
en: {
210210
tagline: "one operation: global find & replace",
211-
title: "DOOM, computed by findandreplace",
211+
title: "DOOM, computed by find-and-replace",
212212
subtitle: "A computer whose only instruction is a regex substitution, applied over and over to one long string. It runs DOOM.",
213213
shot_cap: "The machine painting E1M1. Green pixels are the ones the current substitutions are writing.",
214214
btn_gh: "Source on GitHub",
@@ -438,7 +438,7 @@ <h2 data-i="h_honest"></h2>
438438
const TOY_INIT = "TOY|ST:run|CNT:0097|#D0123456789";
439439
const TOY_RULES = [
440440
["inc", /^(TOY\|ST:run\|CNT:\d*)(\d)(?=9*\|)(?![9]\d*\|)(?<tail>9*)\|(?=.*#D\d*?\2(?<next>\d))/,
441-
null], // заполняется ниже JS не даёт \2 в lookahead легко, делаем проще
441+
null], // заполняется ниже - JS не даёт \2 в lookahead легко, делаем проще
442442
];
443443
// три правила, как в большой машине: лестница инкремента
444444
const TOY = [
@@ -492,7 +492,7 @@ <h2 data-i="h_honest"></h2>
492492
function toyRules() {
493493
const keys = ["toy_r1", "toy_r2", "toy_r3"];
494494
document.getElementById("toy-rules").textContent =
495-
TOY.map((r, i) => "# " + r.name + " " + I18N[LANG][keys[i]] + "\n" + r.show)
495+
TOY.map((r, i) => "# " + r.name + " - " + I18N[LANG][keys[i]] + "\n" + r.show)
496496
.join("\n\n");
497497
}
498498

0 commit comments

Comments
 (0)