OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
_backup
/
tinymce
/
tinymce
/
src
/
core
/
main
/
ts
/
text
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
02/20/2020 05:44:43 AM
rwxr-xr-x
📄
Bidi.ts
403 bytes
02/20/2020 05:44:29 AM
rw-r--r--
📄
CharType.ts
542 bytes
02/20/2020 05:44:29 AM
rw-r--r--
📄
ExtendingChar.ts
3.1 KB
02/20/2020 05:44:30 AM
rw-r--r--
📄
Zwsp.ts
768 bytes
02/20/2020 05:44:30 AM
rw-r--r--
Editing: Zwsp.ts
Close
/** * Copyright (c) Tiny Technologies, Inc. All rights reserved. * Licensed under the LGPL or a commercial license. * For LGPL see License.txt in the project root for license information. * For commercial licenses see https://www.tiny.cloud/ */ /** * Utility functions for working with zero width space * characters used as character containers etc. * * @private * @class tinymce.text.Zwsp * @example * var isZwsp = Zwsp.isZwsp('\uFEFF'); * var abc = Zwsp.trim('a\uFEFFc'); */ // This is technically not a ZWSP but a ZWNBSP or a BYTE ORDER MARK it used to be a ZWSP const ZWSP = '\uFEFF'; const isZwsp = (chr: string) => chr === ZWSP; const trim = (text: string) => text.replace(new RegExp(ZWSP, 'g'), ''); export default { isZwsp, ZWSP, trim };