Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
fix: too liberal non whitespace regex
Browse files Browse the repository at this point in the history
closes #3
  • Loading branch information
luwes committed Apr 21, 2024
1 parent 07ad56b commit 8fe53a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudflare-video-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const VideoEvents = [
];

const EMBED_BASE = 'https://iframe.videodelivery.net';
const MATCH_SRC = /(?:cloudflarestream\.com|videodelivery\.net)\/(\S+)/i;
const MATCH_SRC = /(?:cloudflarestream\.com|videodelivery\.net)\/([\w-.]+)/i;
const API_URL = 'https://embed.videodelivery.net/embed/sdk.latest.js';
const API_GLOBAL = 'Stream';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"url": "https://github.com/luwes/cloudflare-video-element/issues"
},
"scripts": {
"lint": "npx eslint *.js -c ./node_modules/wet-run/.eslintrc.json",
"lint": "npx eslint@8 *.js -c ./node_modules/wet-run/.eslintrc.json",
"test": "wet run",
"dev": "wet serve"
},
Expand Down

0 comments on commit 8fe53a1

Please sign in to comment.