Skip to content

Commit

Permalink
fix: url regExp was not picked up
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiefORZ committed Mar 1, 2022
1 parent 69cdd67 commit dfdd914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import report from 'puppeteer-report';
import util from 'util';

const urlRegExp = new RegExp(
/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/
/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/
);

const debug = Debug('pdf-generator');
Expand Down

0 comments on commit dfdd914

Please sign in to comment.