MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / extractUid

Function extractUid

scripts/ufs_statistic.js:602–604  ·  view source on GitHub ↗
(log)

Source from the content-addressed store, hash-verified

600
601// log example: 5/31/2024, 9:13:41 AM: OPEN-TAB-unlock (1.67-1717121281787) -> 43
602function extractUid(log) {
603 return /-(\d+)\)/.exec(log)?.[1] || "?";
604}
605function extractTime(log) {
606 return (
607 /\d{1,2}\/\d{1,2}\/\d{4}, \d{1,2}:\d{1,2}:\d{1,2} \w{2}/.exec(log)?.[0] ||

Callers 1

onDocumentEndFunction · 0.70

Calls 1

execMethod · 0.45

Tested by

no test coverage detected