JsBarcode
JsBarcode copied to clipboard
[Work in Progress] Jsbarcode v4
This PR is here to easier have discussions about JsBarcode 4
@lindell found that custom valid
function is never invoked.
https://github.com/lindell/JsBarcode/pull/278/files#diff-4f1d5fc97807024e2c3306aeaea72e4eL12
https://github.com/lindell/JsBarcode/pull/278/files#diff-4f1d5fc97807024e2c3306aeaea72e4eL28
@SanichKotikov How would you feel about removing the valid function in favor of catching and checking if it is the InvalidInputException
that is thrown? I thinking that may be a better solution, but I'm not sure.
@lindell feel good :) Actually, I've never liked this valid function as a property.