From 1fa5cff95ced866de11a69189c02b4155b2ffd40 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Fri, 11 Feb 2022 06:19:37 -0800 Subject: [PATCH] Reorder examples slightly Text Templates should come right after String Formatting --- examples.txt | 2 +- public/index.html | 4 ++-- public/json | 2 +- public/regular-expressions | 6 +++--- public/string-formatting | 4 ++-- public/text-templates | 6 +++--- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/examples.txt b/examples.txt index c0b7498..c309511 100644 --- a/examples.txt +++ b/examples.txt @@ -47,8 +47,8 @@ Recover Collection Functions String Functions String Formatting -Regular Expressions Text Templates +Regular Expressions JSON XML Time diff --git a/public/index.html b/public/index.html index 5dbce34..14d1d60 100644 --- a/public/index.html +++ b/public/index.html @@ -125,10 +125,10 @@
  • String Formatting
  • -
  • Regular Expressions
  • -
  • Text Templates
  • +
  • Regular Expressions
  • +
  • JSON
  • XML
  • diff --git a/public/json b/public/json index c437bd1..e8cb478 100644 --- a/public/json +++ b/public/json @@ -9,7 +9,7 @@ onkeydown = (e) => { if (e.key == "ArrowLeft") { - window.location.href = 'text-templates'; + window.location.href = 'regular-expressions'; } diff --git a/public/regular-expressions b/public/regular-expressions index 806d67f..76a0d56 100644 --- a/public/regular-expressions +++ b/public/regular-expressions @@ -9,12 +9,12 @@ onkeydown = (e) => { if (e.key == "ArrowLeft") { - window.location.href = 'string-formatting'; + window.location.href = 'text-templates'; } if (e.key == "ArrowRight") { - window.location.href = 'text-templates'; + window.location.href = 'json'; } } @@ -329,7 +329,7 @@ the regexp package docs

    - Next example: Text Templates. + Next example: JSON.

    diff --git a/public/string-formatting b/public/string-formatting index 8bd5dd2..43618a1 100644 --- a/public/string-formatting +++ b/public/string-formatting @@ -14,7 +14,7 @@ if (e.key == "ArrowRight") { - window.location.href = 'regular-expressions'; + window.location.href = 'text-templates'; } } @@ -442,7 +442,7 @@ and returns a string without printing it anywhere.

    - Next example: Regular Expressions. + Next example: Text Templates.

    diff --git a/public/text-templates b/public/text-templates index 2b97618..665eb5b 100644 --- a/public/text-templates +++ b/public/text-templates @@ -9,12 +9,12 @@ onkeydown = (e) => { if (e.key == "ArrowLeft") { - window.location.href = 'regular-expressions'; + window.location.href = 'string-formatting'; } if (e.key == "ArrowRight") { - window.location.href = 'json'; + window.location.href = 'regular-expressions'; } } @@ -260,7 +260,7 @@ the range block {{.}} is set to the current item of the iteration.<

    - Next example: JSON. + Next example: Regular Expressions.