MCPcopy Create free account
hub / github.com/ChinaGodMan/UserScripts / containsHTML

Function containsHTML

github-commit-viewer/github-commit-viewer.user.js:219–222  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

217 }
218}
219function containsHTML(str) {
220 const pattern = /<\/?[a-z][\s\S]*>/i
221 return pattern.test(str)
222}
223/**
224 * 监视 DOM 变化,直到找到符合选择器的元素,然后执行指定的回调函数。
225 * @param {string} selector - 要匹配的选择器。

Callers 4

updateRepoListCommitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected