Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Duologic committed Jun 1, 2023
1 parent 312c2f7 commit 5045d01
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions string.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local d = import 'doc-util/main.libsonnet';
),

// BelRune is a string of the Ascii character BEL which made computers ring in ancient times.
// We use it as "magic" char toe temporarily replace an escaped string as it is a non printable
// We use it as "magic" char to temporarily replace an escaped string as it is a non printable
// character and thereby will unlikely be in a valid key by accident. Only when we include it.
local BelRune = std.char(7),

Expand All @@ -28,11 +28,9 @@ local d = import 'doc-util/main.libsonnet';
function(i)
std.strReplace(i, BelRune, escape + c),
std.split(
std.join(
BelRune,
std.split(str, escape + c)
),
std.strReplace(str, escape + c, BelRune),
c,
)
),

}

0 comments on commit 5045d01

Please sign in to comment.