From 796385261967d91005e002db6f72c08e850e05ba Mon Sep 17 00:00:00 2001 From: Florian Loitsch Date: Sat, 15 Nov 2025 17:57:30 +0100 Subject: [PATCH] Fix kebabify on Windows. When a path had a `\` in it, the kebabify tool would fail. --- tools/kebabify.toit | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/kebabify.toit b/tools/kebabify.toit index 64a304199..f53a8a63a 100644 --- a/tools/kebabify.toit +++ b/tools/kebabify.toit @@ -140,7 +140,9 @@ migrate invocation/cli.Invocation toitc/string?: migration-points.resize point-count ui.emit --info "Migrating $point-count locations." - parsed-points := json.parse "[$(migration-points.join ",")]" + joined := migration-points.join "," + joined = joined.replace --all "\\" "\\\\" + parsed-points := json.parse "[$joined]" file-points := {:} // The entries are of the form "[file, offset-from, offset-to, replacement]".