From 19fd5ca5f26f798742e411453b30ad467b101a50 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Thu, 22 Jul 2021 16:55:17 +0100 Subject: [PATCH] Remove erroneous `\s` from field name check Fixes #5905 --- boot/boot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boot/boot.js b/boot/boot.js index d1dd9b952..98adce691 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -1602,8 +1602,8 @@ $tw.modules.define("$:/boot/tiddlerdeserializer/json","tiddlerdeserializer",{ } for(var f in data) { if($tw.utils.hop(data,f)) { - // Check field name doesn't contain whitespace or control characters - if(typeof(data[f]) !== "string" || /[\x00-\x1F\s]/.test(f)) { + // Check field name doesn't contain control characters + if(typeof(data[f]) !== "string" || /[\x00-\x1F]/.test(f)) { return false; } }