mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 12:18:39 +00:00
Add missing v
prefix to the size badge URL (#1342)
* Add missing `v` prefix to the size badge URL * Add missing `v` prefix to badge URL update script
This commit is contained in:
@@ -22,7 +22,7 @@ Promise.all(process.argv.slice(3).map(file =>
|
||||
// Replace size badge url
|
||||
// 1 - url prefix: https://img.badgesize.io/Khan/KaTeX/
|
||||
// 2 - url suffix: /dist/katex.min.js?compression=gzip
|
||||
const badgeRe = /(https:\/\/img\.badgesize\.io\/Khan\/KaTeX\/)(?:.+)(\/dist\/katex\.min\.js\?compression=gzip)/g;
|
||||
const badgeRe = /(https:\/\/img\.badgesize\.io\/Khan\/KaTeX\/v)(?:.+)(\/dist\/katex\.min\.js\?compression=gzip)/g;
|
||||
body = body.replace(badgeRe, (m, pre, post) => {
|
||||
return pre + version + post;
|
||||
});
|
||||
|
Reference in New Issue
Block a user