packages/remark-stringify/lib/escape.js
function protocol(value) {
  var val = value.slice(-6).toLowerCase()
  return val === mailto || val.slice(-5) === https || val.slice(-4) === http
}
function protocol(value) {
  var val = value.slice(-6).toLowerCase()
  return val === mailto || val.slice(-5) === https || val.slice(-4) === http
}
function protocol ( value ) { var val = value . slice ( - 6 ) . toLowerCase ( ) return val === mailto || val . slice ( - 5 ) === https || val . slice ( - 4 ) === http }
Check if `value` ends in a protocol.
Check if value ends in a protocol .