mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
build
This commit is contained in:
parent
5761c7ca62
commit
1aa75ab8fa
3
dist/showdown.js
vendored
3
dist/showdown.js
vendored
@ -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();
|
||||
|
2
dist/showdown.js.map
vendored
2
dist/showdown.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/showdown.min.js
vendored
2
dist/showdown.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/showdown.min.js.map
vendored
2
dist/showdown.min.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user