Compare commits
2 Commits
135fb372f5
...
5487903b27
Author | SHA1 | Date |
---|---|---|
|
5487903b27 | |
|
0d2bc9024f |
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "ripunzel",
|
"name": "ripunzel",
|
||||||
"version": "1.27.2",
|
"version": "1.27.3",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "ripunzel",
|
"name": "ripunzel",
|
||||||
"version": "1.27.2",
|
"version": "1.27.3",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"array.prototype.flatten": "^1.2.1",
|
"array.prototype.flatten": "^1.2.1",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "ripunzel",
|
"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.",
|
"description": "Web content archiving tool, with versatile filename patterns and extensive options for reddit user profiles.",
|
||||||
"main": "app.js",
|
"main": "app.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -118,7 +118,9 @@ module.exports = function dissectLink(url) {
|
||||||
return acc;
|
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) {
|
if (match) {
|
||||||
return Object.assign(match, {
|
return Object.assign(match, {
|
||||||
|
|
Loading…
Reference in New Issue