Added the ignore API and exposed it via WebUI.

This commit is contained in:
Abdulmhsen B. A. A.
2024-05-30 16:22:40 +03:00
parent c267397b88
commit a1c8caef61
7 changed files with 706 additions and 19 deletions

View File

@@ -286,4 +286,17 @@ const copyText = (str) => {
notification('success', 'Success', 'Text copied to clipboard.')
}
export {ag_set, ag, humanFileSize, awaitElement, ucFirst, notification, makeGUIDLink, formatDuration, copyText}
const stringToRegex = (str) => new RegExp(str.match(/\/(.+)\/.*/)[1], str.match(/\/.+\/(.*)/)[1]);
export {
ag_set,
ag,
humanFileSize,
awaitElement,
ucFirst,
notification,
makeGUIDLink,
formatDuration,
copyText,
stringToRegex
}