Compare commits
2 Commits
135fb372f5
...
5487903b27
Author | SHA1 | Date |
---|---|---|
|
5487903b27 | |
|
0d2bc9024f |
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "ripunzel",
|
||||
"version": "1.27.2",
|
||||
"version": "1.27.3",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "ripunzel",
|
||||
"version": "1.27.2",
|
||||
"version": "1.27.3",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"array.prototype.flatten": "^1.2.1",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "ripunzel",
|
||||
"version": "1.27.2",
|
||||
"version": "1.27.3",
|
||||
"description": "Web content archiving tool, with versatile filename patterns and extensive options for reddit user profiles.",
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -118,7 +118,9 @@ module.exports = function dissectLink(url) {
|
|||
return acc;
|
||||
}
|
||||
|
||||
const match = host.pattern.match(url.replace(/(https?:\/\/)|(\/)+/g, '$1$2')); // remove double slashes
|
||||
// const match = host.pattern.match(url.replace(/(https?:\/\/)|(\/)+/g, '$1$2')); // remove double slashes
|
||||
const { origin, pathname } = new URL(url);
|
||||
const match = host.pattern.match(`${origin}${pathname}`); // remove double slashes
|
||||
|
||||
if (match) {
|
||||
return Object.assign(match, {
|
||||
|
|
Loading…
Reference in New Issue