Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

dash/scripts: the last two literal NUL bytes become escapes (#316)

nyblnet7422f4fe9e03
diff --git a/dash/src/filter.ts b/dash/src/filter.ts
index 942853b2..ac18bf62 100644
Binary files a/dash/src/filter.ts and b/dash/src/filter.ts differ
diff --git a/scripts/test-clipboard.ts b/scripts/test-clipboard.ts
index 420b2ad7..8faee179 100644
--- a/scripts/test-clipboard.ts
+++ b/scripts/test-clipboard.ts
@@ -311,7 +311,7 @@ console.log('\ncolours are judged by the same rule in both layers')
// the two layers must AGREE: anything untrusted.ts keeps as a colour,
// render.ts must also accept, or the document holds a value that renders as
// a fallback and the stricter layer is the one nobody can see.
- const FB = 'fallback'
+ const FB = '\u0000fallback'
const disagreements = [
'#fff', 'rgba(0,0,0,0.5)', 'color(srgb 0.98 0.68 0.25 / 0.55)', 'transparent', 'none', 'burlywood',
].filter((v) => {