This commit is contained in:
Estevão Soares dos Santos 2022-04-25 08:31:07 +01:00
parent 5761c7ca62
commit 1aa75ab8fa
4 changed files with 4 additions and 5 deletions

3
dist/showdown.js vendored
View File

@ -1142,11 +1142,10 @@ showdown.helper.isAbsolutePath = function (path) {
};
showdown.helper.URLUtils = function (url, baseURL) {
const pattern1 = /^\s+|\s+$/g;
const pattern2 = /^([^:\/?#]+:)?(?:\/\/(?:([^:@\/?#]*)(?::([^:@\/?#]*))?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/;
let m = String(url)
.replace(pattern1, '')
.trim()
.match(pattern2);
if (!m) {
throw new RangeError();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long