nager / nager.articlenumber Goto Github PK
View Code? Open in Web Editor NEWC# Validate Article Numbers ASIN, EAN8, EAN13, GTIN, ISBN, ISBN13, SKU, UPC
License: MIT License
C# Validate Article Numbers ASIN, EAN8, EAN13, GTIN, ISBN, ISBN13, SKU, UPC
License: MIT License
ArticleNumberHelper.GetArticleNumberType("849172008847 ")
is reported as type EAN13 but I think it should be unknown or maybe UPC (if the traling space is ignored)
ISSN is similar to ISBN but used for series instead of individual editions.
Hello,
I was thinking about extending your library to do conversions from UPC to GTIN-14. Would this be something you'd want to pull into your repo?
Thanks,
Jason
I tried this:
Nager.ArticleNumber.ArticleNumberType articleNumberType = Nager.ArticleNumber.ArticleNumberHelper.GetArticleNumberType("9783551775849");
articleNumberType was recognized as ArticleNumberType.Ean13 but it is actually a ArticleNumberType.Isbn13 (Prefix 978)
But
if (Nager.ArticleNumber.ArticleNumberHelper.IsValidIsbn13("9783551775849"))
and
if (Nager.ArticleNumber.ArticleNumberHelper.IsValidEan("9783551775849"))
both are true...
2 Issues:
IsValidIssn
throws exception on string "1234ffsfe"
but should have returned false
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.