metanorma / pubid-iec

PubID spec and implementation for IEC deliverables
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Adopted ISO identifiers incorrect parsing #125

Closed mico closed 1 year ago

mico commented 1 year ago

After updating pubid-iec to version > 0.2.2 tests for pubid-bsi are failing:

expected: "BS ISO/PAS 5643"
     got: "BS ISO PRF PAS 5643"
expected: "BS ISO/DIS 22000:2017"
     got: "BS ISO DIS 22000:2017"
expected: "BS ISO/FDIS 22301:2012"
     got: "BS ISO FDIS 22301:2012"

Cause is the pubid-iec parser's update: https://github.com/metanorma/pubid-iec/commit/0c6a314d2612ffb06511cbf86d6df17602526700

Now stages ("FDIS", "DIS", "PRF PAS") parsed as part of number, not a stage. Which is incorrect.