I want to use JsBarcode.all.min.js
locally (because the intended target will not have an active internet connection) but it does not work after downloading.
When I download and reference as follows:
<script src="JsBarcode.all.min.js"></script>
I get an error when trying to create a barcode:
JsBarcode.all.min.js:2 Uncaught SyntaxError: Invalid regular expression: /^[-_È-Ã]*/: Range out of order in character class (at JsBarcode.all.min.js:2:25056)
at new RegExp (<anonymous>)
at o (JsBarcode.all.min.js:2:25056)
at e.default (JsBarcode.all.min.js:2:25767)
at new e (JsBarcode.all.min.js:2:24495)
at v (JsBarcode.all.min.js:2:19469)
at JsBarcode.all.min.js:2:19402
at t.value (JsBarcode.all.min.js:2:60628)
at d.<computed>.d.<computed>.d.<computed> (JsBarcode.all.min.js:2:19268)
at h (JsBarcode.all.min.js:2:19000)
at <anonymous>:1:1
when I reference it from the JsDelivr CDN:
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/JsBarcode.all.min.js"></script>
it works fine.
I suspect it has something to do with encoding, but why would wget
download something different than the browser?