openstax / poet

VSCode Extension to edit OpenStax books
https://gitpod.io/#https://github.com/openstax/poet
GNU Affero General Public License v3.0
2 stars 5 forks source link

Slug uri compare fix #208

Closed TylerZeroMaster closed 3 months ago

TylerZeroMaster commented 3 months ago

Use basename to verify collection is named as expected

The problem was that some characters were being uri encoded on one side of the comparison but not the other

Using basename on both side of the comparison should cause both strings to undergo the same transformation

As long as both results are the same, then the validation should pass