We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc093f4 commit c19268dCopy full SHA for c19268d
1.hello-world/10.read-video-pwa/service-worker.js
@@ -1,5 +1,5 @@
1
const dbrCdn = `https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@9.6.31/dist/`;
2
-const dbrVersion = dbrCdn.slice(dbrCdn.search(/(?<=dynamsoft-javascript-barcode@)./), dbrCdn.search(/\/dist/));
+const dbrVersion = dbrCdn.match(/(?<=dynamsoft-javascript-barcode@).+(?=\/dist)/)[0];
3
4
// Files to cache
5
const cacheName = 'helloworld-pwa';
0 commit comments