seratojs icon indicating copy to clipboard operation
seratojs copied to clipboard

Remove sanitize from Crate constructor

Open hackeresq opened this issue 1 year ago • 0 comments

Hey @bcollazo -- this is a fantastic library!

The sanitize method you're using when creating new Crate objects breaks subcrates, which are formatted with %% as an indicator of nesting (e.g. NOSTALGIA FACTORY%%1950's.crate where 1950's is nested under NOSTALGIA FACTORY).

I heavily use subcrates and this library was unable to access / manage my subcrates. Curious what issues caused the need for sanitize? Or if it was just a precaution?

If the latter, removing sanitize provides additional functionality for this library.

FYI - I'm using your library in a cli util to programmatically update file paths for my entire library.

hackeresq avatar Feb 17 '24 03:02 hackeresq