kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Ensure tiddlers with fieldnames containing colons don't get saved in .tid file format
Prompted by discussion over at https://github.com/Jermolene/TiddlyWiki5/pull/5708#issuecomment-862399985new-json-store-area
rodzic
a409536ad0
commit
338b7c92a2
|
@ -228,6 +228,7 @@ exports.generateTiddlerFileInfo = function(tiddler,options) {
|
|||
hasUnsafeFields = hasUnsafeFields || /[\x00-\x1F]/mg.test(value);
|
||||
hasUnsafeFields = hasUnsafeFields || ($tw.utils.trim(value) !== value);
|
||||
}
|
||||
hasUnsafeFields = hasUnsafeFields || /:/mg.test(fieldName);
|
||||
});
|
||||
// Check for field values
|
||||
if(hasUnsafeFields) {
|
||||
|
|
Ładowanie…
Reference in New Issue