|
4 | 4 | <meta charset="utf-8"> |
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1"> |
6 | 6 | <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 & replace as a computer</title> |
| 7 | +<title>DOOM on regex - find & replace as a computer</title> |
8 | 8 | <style> |
9 | 9 | :root { |
10 | 10 | --bg: #0d0b0a; --panel: #171310; --panel2: #1f1a15; |
@@ -208,7 +208,7 @@ <h2 data-i="h_honest"></h2> |
208 | 208 | const I18N = { |
209 | 209 | en: { |
210 | 210 | tagline: "one operation: global find & replace", |
211 | | - title: "DOOM, computed by find‑and‑replace", |
| 211 | + title: "DOOM, computed by find-and-replace", |
212 | 212 | subtitle: "A computer whose only instruction is a regex substitution, applied over and over to one long string. It runs DOOM.", |
213 | 213 | shot_cap: "The machine painting E1M1. Green pixels are the ones the current substitutions are writing.", |
214 | 214 | btn_gh: "Source on GitHub", |
@@ -438,7 +438,7 @@ <h2 data-i="h_honest"></h2> |
438 | 438 | const TOY_INIT = "TOY|ST:run|CNT:0097|#D0123456789"; |
439 | 439 | const TOY_RULES = [ |
440 | 440 | ["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 легко, делаем проще |
442 | 442 | ]; |
443 | 443 | // три правила, как в большой машине: лестница инкремента |
444 | 444 | const TOY = [ |
@@ -492,7 +492,7 @@ <h2 data-i="h_honest"></h2> |
492 | 492 | function toyRules() { |
493 | 493 | const keys = ["toy_r1", "toy_r2", "toy_r3"]; |
494 | 494 | 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) |
496 | 496 | .join("\n\n"); |
497 | 497 | } |
498 | 498 |
|
|
0 commit comments