replace references to unsafe url-regex

This commit is contained in:
Joe 2020-09-15 18:54:21 -05:00
父節點 19ea9231b3
當前提交 e613b916ad
簽署人: joe
GPG 金鑰 ID: 8595A3F8F2CE1B74
共有 3 個檔案被更改,包括 3 行新增3 行删除

查看文件

@ -4,7 +4,7 @@ import { Handler } from "express";
import isbot from "isbot";
import generate from "nanoid/generate";
import URL from "url";
import urlRegex from "url-regex";
import urlRegex from "url-regex-safe";
import { promisify } from "util";
import { deleteDomain, getDomain, setDomain } from "../db/domain";
import { addIP } from "../db/ip";

查看文件

@ -3,7 +3,7 @@ import { validationResult } from "express-validator";
import { body } from "express-validator";
import { RequestHandler } from "express";
import { promisify } from "util";
import urlRegex from "url-regex";
import urlRegex from "url-regex-safe";
import axios from "axios";
import dns from "dns";
import URL from "url";

查看文件

@ -1,6 +1,6 @@
import { body, param } from "express-validator";
import { isAfter, subDays, subHours } from "date-fns";
import urlRegex from "url-regex";
import urlRegex from "url-regex-safe";
import { promisify } from "util";
import bcrypt from "bcryptjs";
import axios from "axios";