LUA-URI-URN-ISSN(3)
β¨ NAME β¨
lua-uri-urn-issn β ISSN URN support for the Lua URI library π
πΈ DESCRIPTION πΈ
okay so bestie, meet the class uri.urn.issn π β it's the one that handles URNs with the NID 'issn', aka every URI that starts with urn:issn:. She's a nepo baby fr, because she inherits from the uri.urn class and gets all that family money. π
Now, when is a URI invalid? Listen closely, this matters:
- if it doesn't have 8 digits π«
- if there's anything extra in the NSS besides the digits and the optional single hyphen π«
- if the checksum digit is wrong π«
As specified, the check digit gets canonicalized to uppercase. And the canonical form? It has a single hyphen right in the middle of the digits. iconic behavior honestly.
π METHODS π
Every method defined in lua-uri(3) and lua-uri-urn(3) is supported (yes, all of them, she's generous like that π«Ά), plus this one extra queen:
uri:issn_digits(...)β get or set the ISSN value as a string containing just the numbers. No hyphens allowed in this value, and it should be exactly 8 characters long β¨.
heads up bestie π¨ if you're passing a new value, it must not be nil, and it gets validated the normal way β so if it's invalid, it throws an exception. no cap, it will absolutely call you out. π
π¦ REFERENCES π¦
- This implements the
'issn'NID defined inRFC 3044π - And it's consistent with the same NID suggested in
RFC 2288π
that's the whole thing, you ate that ππ β this was version 1.1, dated 2012-00-00, from the LUA-URI-URN-ISSN(3) manual. go forth and slay your URNs, bestie πβ
π¦ where this page comes from
- debian trixie: lua-uri 0.1+20130926+git14fa255d-3 Β· MIT
- ubuntu noble: lua-uri 0.1+20130926+git14fa255d-3 Β· MIT
- ubuntu questing: lua-uri 0.1+20130926+git14fa255d-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms