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

Function extractUid

scripts/ufs_statistic_old.js:800–802  ·  view source on GitHub ↗
(log)

Source from the content-addressed store, hash-verified

798
799// log example: 5/31/2024, 9:13:41 AM: OPEN-TAB-unlock (1.67-1717121281787) -> 43
800function extractUid(log) {
801 return /-(\d+)\)/.exec(log)?.[1] || "?";
802}
803function extractTime(log) {
804 return (
805 /\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