metanorma / pubid-iso

Implementation of ISO pubid
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

README error with `to_s` #269

Open ronaldtse opened 2 months ago

ronaldtse commented 2 months ago

Instead of:

pubid.to_s(:ref_num_short)
=> "ISO 8601-1:2019/DAM 1:2021(E)"
> pubid.to_s(:ref_dated)
=> "ISO 8601-1:2019/DAM 1:2021"
> pubid.to_s(:ref_undated)
=> "ISO 8601-1:2019/DAM 1"

Should be:

pubid.to_s(format: :ref_num_short)
=> "ISO 8601-1:2019/DAM 1:2021(E)"
> pubid.to_s(format: :ref_dated)
=> "ISO 8601-1:2019/DAM 1:2021"
> pubid.to_s(format: :ref_undated)
=> "ISO 8601-1:2019/DAM 1"