tahamajs's picture
download
raw
249 Bytes
const getAttributedEntry = (string, name, value) => string.replace(/^\s*<[a-z]+/i, `$& data-${name}="${value}"`);
const getPrefixedEntry = (value, id) => getAttributedEntry(value, 'csl-entry-id', id);
export { getAttributedEntry, getPrefixedEntry };

Xet Storage Details

Size:
249 Bytes
·
Xet hash:
9ebc3125ae2f2c06fa33de310da444d5e21c30a4d60f7335c143d493ec5bb54c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.