Skip to content

Commit 704332b

Browse files
committed
Chore: Omit version prefix from replacing jsdelivr urls in readme
1 parent 97454e1 commit 704332b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The package is a wrapper around [Cookie Consent] by [Orest Bida].
1212
Load the script and initialize the plugin right before ending `</body>` tag:
1313

1414
```html
15-
<script defer src="https://cdn.jsdelivr.net/npm/@lmc-eu/cookie-consent-manager@v0.3.0/init.js"></script>
15+
<script defer src="https://cdn.jsdelivr.net/npm/@lmc-eu/cookie-consent-manager@0.3.0/init.js"></script>
1616
<script>
1717
window.addEventListener('load', function () {
1818
initLmcCookieConsentManager();
@@ -29,7 +29,7 @@ This will load the plugin from CDN and initialize the plugin with default settin
2929
You can load the plugin from a CDN, as in the basic example above.
3030

3131
```html
32-
<script defer src="https://cdn.jsdelivr.net/npm/@lmc-eu/cookie-consent-manager@v0.3.0/init.js"></script>
32+
<script defer src="https://cdn.jsdelivr.net/npm/@lmc-eu/cookie-consent-manager@0.3.0/init.js"></script>
3333
```
3434

3535
Alternatively, you can also download the latest version from the [Releases page](https://github.com/lmc-eu/cookie-consent-manager/releases).

scripts/readme-replace-version.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ const replace = require('replace-in-file');
22
const packageJson = require('../package.json');
33
const options = {
44
files: 'README.md',
5-
from: /cookie-consent-manager@v([0-9]\.[0-9]\.[0-9])/gm,
6-
to: `cookie-consent-manager@v${packageJson.version}`,
5+
from: /cookie-consent-manager@([0-9]\.[0-9]\.[0-9])/gm,
6+
to: `cookie-consent-manager@${packageJson.version}`,
77
};
88

99
replace(options)

0 commit comments

Comments
 (0)