message: Fix URL substring sanitization
diff: * Licensed under the MIT License.
  */
  -import shell from "shelljs";
  import {
  Handler,
  readFile
  @@ -23,7 +22,8 @@ export const handlers: Handler[] = [
  if (matches !== null) {
  const results: string[] = [];
  const containsBadUrl = matches.some((value) => {
  - if (value.startsWith(`https://registry.npmjs.org`)) {
  + const url = new URL(value);
  + if (url.protocol === `https:` && url.hostname === `registry.npmjs.org`) {
  return false;
  }
  results.push(value)
  