supabase-community / seed

Automatically seed your database with production-like dummy data based on your schema for local development and testing.
MIT License
469 stars 17 forks source link

fix(core): correct escaping for Windows paths when generating assets #169

Closed jgoux closed 6 months ago

jgoux commented 6 months ago

Fixes https://github.com/snaplet/docs/issues/112

dedent seems to mess with newline characters so we're now inserting the path afterward.

Reproduced the issue and tested the fix manually on Windows with a path containing both \n and \t.

justinvdm commented 6 months ago

tested the fix manually on Windows with a path containing both \n and \t

How'd you do this? Do you have a windows machine?

jgoux commented 6 months ago

tested the fix manually on Windows with a path containing both \n and \t

How'd you do this? Do you have a windows machine?

Yes, I'm a man of culture Justin.