| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| exports.getWrappedEntry = void 0; | |
| const getAffix = (source, affix) => typeof affix === 'function' ? affix(source) : typeof affix === 'string' ? affix : ''; | |
| const htmlRegex = /^([^>]+>)([\s\S]+)(<[^<]+)$/i; | |
| const getWrappedEntry = (value, source, { | |
| prepend, | |
| append | |
| }) => { | |
| const [, start = '', content = value, end = ''] = value.match(htmlRegex) || []; | |
| const prefix = getAffix(source, prepend); | |
| const suffix = getAffix(source, append); | |
| return start + prefix + content + suffix + end; | |
| }; | |
| exports.getWrappedEntry = getWrappedEntry; |
Xet Storage Details
- Size:
- 620 Bytes
- Xet hash:
- 887abbcc475d262e9928052eb58a4b4c8312d02c64c4ca8579ccb70f524effb9
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.