packages/embed-plugin-utilities/src/insert.js
function isAnchorTagApplied({ result, plugins = [] }, { regex }) {
  return (
    getAnchorRegex(regex).test(result) ||
    plugins.filter(plugin => plugin.id === "url").length
  )
}
function isAnchorTagApplied({ result, plugins = [] }, { regex }) {
  return (
    getAnchorRegex(regex).test(result) ||
    plugins.filter(plugin => plugin.id === "url").length
  )
}
function isAnchorTagApplied ( { result , plugins = [ ] } , { regex } ) { return ( getAnchorRegex ( regex ) . test ( result ) || plugins . filter ( plugin => plugin . id === "url" ) . length ) }
Tells wheteher the matching string is present inside an anchor tag
@param text
@returns {*} Boolean
@param regex
Tells wheteher the matching string is present inside an anchor tag