Field | Value |
---|---|
Find | \$([a-z\-_]+) |
Where | -*.js,-*.woff,-*.woff2 |
Replace | $newprefix-$1 |
Should match these:
function clickFileViewedViaRegex(regex, markAsViewed = true) { | |
document.querySelectorAll('.file').forEach((item) => { | |
if (item.querySelector('.file-header a[title]').getAttribute('title').match(regex)) { | |
var checkbox = item.querySelector('.js-reviewed-checkbox'); | |
if (markAsViewed && !checkbox.checked) checkbox.click(); | |
if (!markAsViewed && checkbox.checked) checkbox.click(); | |
} | |
}); | |
} |