Skip to content

Commit

Permalink
Skip links that come after xsi:*
Browse files Browse the repository at this point in the history
  • Loading branch information
justindhillon committed Apr 2, 2024
1 parent 7ffb0e3 commit 1e0adb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { checkLink } from "./checkLink";
import fs from 'fs';

const urlRegex: RegExp = /(?<!xmlns=['"])(?<!xmlns:.*=['"])(?<!targetNamespace=['"])(\bhttps?:\/\/(?!.*\$)(?!.*{)(?!.*"\s\+)[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
const urlRegex: RegExp = /(?<!xmlns=['"])(?<!xmlns:.*=['"])(?<!xsi=['"])(?<!xsi:.*=['"])(?<!targetNamespace=['"])(\bhttps?:\/\/(?!.*\$)(?!.*{)(?!.*"\s\+)[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;

let QUEUE:Record<number, string[]> = {};
let PROCESS: number = 0;
Expand Down

0 comments on commit 1e0adb0

Please sign in to comment.