Gabriella439 / turtle

Shell programming, Haskell style
BSD 3-Clause "New" or "Revised" License
943 stars 90 forks source link

Fix `commonPrefix` and `stripPrefix` #435

Closed Gabriella439 closed 2 years ago

Gabriella439 commented 2 years ago

They were both handling paths with extensions incorrectly. For example:

>>> stripPrefix "./" "./foo.bar"
Just "foo/.bar"