Skip to content

Commit

Permalink
Merge pull request #590 from oduwsdl/reconstructive
Browse files Browse the repository at this point in the history
Add support for rewriting absolute URLs in meta refresh
  • Loading branch information
machawk1 authored Oct 15, 2018
2 parents baebb0b + 30f9059 commit f7fe37a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ipwb/assets/reconstructive.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Reconstructive {
constructor(config) {
this.NAME = 'Reconstructive';

this.VERSION = '0.7.0';
this.VERSION = '0.7.1';

this.id = `${this.NAME}:${this.VERSION}`;

Expand All @@ -43,7 +43,7 @@ class Reconstructive {

this._regexps = {
urimPattern: new RegExp(`^${this.urimPattern.replace('<datetime>', '(\\d{14})').replace('<urir>', '(.*)')}$`),
absoluteReference: new RegExp(`(<(iframe|a).*?\\s+(src|href)\\s*=\\s*["']?)(https?:\/\/[^'"\\s]+)(.*?>)`, 'ig'),
absoluteReference: new RegExp(`(<(iframe|a|meta).*?\\s+(src|href|content\\s*=\\s*["']?\\s*\\d+\\s*;\\s*url)\\s*=\\s*["']?)(https?:\/\/[^'"\\s]+)(.*?>)`, 'ig'),
bodyEnd: new RegExp('<\/(body|html)>', 'i')
};

Expand Down

0 comments on commit f7fe37a

Please sign in to comment.