Skip to content

Commit 025b858

Browse files
Release 20260125
1 parent ea34bde commit 025b858

File tree

12 files changed

+17
-3
lines changed

12 files changed

+17
-3
lines changed

.nojekyll

Whitespace-only changes.

hlp-dguide/Help-.zip

0 Bytes
Binary file not shown.

hlp-dguide/Help-cs.zip

5.88 KB
Binary file not shown.

hlp-dguide/Help-en.zip

5.48 KB
Binary file not shown.

hlp-user/Help-cs.zip

58 Bytes
Binary file not shown.

hlp-user/Help-en.zip

15 Bytes
Binary file not shown.

hlp/Help-.zip

0 Bytes
Binary file not shown.

hlp/Help-cs.zip

123 Bytes
Binary file not shown.

hlp/Help-en.zip

120 Bytes
Binary file not shown.

hvdata/appmain.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ const $ = (name) => document.getElementById(name);
77
const $O = (selector, parent = document) => parent?.querySelector(selector);
88
const $A = (selector, parent = document) => parent?.querySelectorAll(selector);
99

10+
function toFilteredUTFText(s) {
11+
if (!s) return s
12+
return s.normalize('NFC').replace(/[\u200B-\u200C\u200E-\u200F\uFEFF\u2060-\u206F\uE000-\uF8FF\u007F-\u009F\u2028\u2029]/g, '');
13+
// \u200D - kept for unicode character joining
14+
// \u0000-\u001F (C0), \u007F-\u009F (C1)
15+
// \u2028 - line sep, \u2029 - par sep.
16+
// \u0000-\u001F ... kept unsolved because of browser loading stooped due to this!
17+
}
18+
1019
function newUID(length = 8) {
1120
var str = '';
1221

@@ -203,7 +212,12 @@ var _Storage = (() => {
203212
if (!storagesC.has(key))
204213
return null;
205214

206-
return await storagesC.get(key).search(filePath, format);
215+
let reply = await storagesC.get(key).search(filePath, format);
216+
217+
if (format == STOF_TEXT)
218+
reply = toFilteredUTFText(reply);
219+
220+
return reply;
207221
}
208222

209223
async function getSubdirs(key, parentPath) {
@@ -387,7 +401,7 @@ async function main(baseDataStream = null) {
387401
} else {
388402
st = await _Storage.add(STO_DATA, `${DATA_FILE_PATH_BASE}.zip`, baseDataStream);
389403
}
390-
const srcT = await _Storage.search(STO_DATA, 'appmainRun.js');
404+
const srcT = await _Storage.search(STO_DATA, 'base/appmainRun.js');
391405
appendJavaScript(id_JSAppRun, srcT, document.body);
392406
runApp();
393407
}

0 commit comments

Comments
 (0)