Closed AntumDeluge closed 3 years ago
If a mod's title includes a dash (-) (U+002D), the shields.io badge is not displayed correctly.
Example: xdecor (X-Decor)
https://content.minetest.net/packages/jp/xdecor/shields/title/
https://img.shields.io/badge/ContentDB-X-Decor-%23375a7f
Downloads badge works fine:
![ContentDB](https://content.minetest.net/packages/jp/xdecor/shields/downloads/)
The problem is that shields.io uses dashes as the delimiter for parsing arguments in static URLs.
https://img.shields.io/badge/ContentDB-X‐Decor-%23375a7f
https://img.shields.io/static/v1?label=ContentDB&message=X%2DDecor&color=%23375a7f
Summary
If a mod's title includes a dash (-) (U+002D), the shields.io badge is not displayed correctly.
Details
Example: xdecor (X-Decor)
https://content.minetest.net/packages/jp/xdecor/shields/title/
/https://img.shields.io/badge/ContentDB-X-Decor-%23375a7f
)Downloads badge works fine:
![ContentDB](https://content.minetest.net/packages/jp/xdecor/shields/downloads/)
)The problem is that shields.io uses dashes as the delimiter for parsing arguments in static URLs.
Possible Solutions
https://img.shields.io/badge/ContentDB-X‐Decor-%23375a7f
https://img.shields.io/static/v1?label=ContentDB&message=X%2DDecor&color=%23375a7f