So, let's take, for example, the following sentence:
Chandra Source Catalog Release 2.0
I've run this through various string.to_slug()
and sluggify(string)
methods on different platforms and systems. The outcome is always the following:
chandra-source-catalog-release-20
Which to me seems incorrect. How should the above edge case be handled? Preference would be for the following:
chandra-source-catalog-release-2_0
It feels like it has an obvious answer, but then, nuance. The other time a full stop appears is at the end of a sentence. So, we could have:
Chandra Source Catalog Release 2.0.
I guess what I am asking is as well, is what is the best practice for handling such version numbers in URL slugs?