{"version":"2.1.239","anchor":"home-directory-and-path-shortening-fixed-on-windows","canonical_anchor":"home-directory-and-path-shortening-fixed-on-windows","heading":"Home-directory and path shortening fixed on Windows","tier":"notice","area":"Windows","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.239\/e\/home-directory-and-path-shortening-fixed-on-windows","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.239","markdown":"### Home-directory and path shortening fixed on Windows\n\nOn Windows, ~ expansion and shortened paths with backslashes now behave correctly.\n\n**What**\n\n`~` now expands only when it stands alone or is followed by the platform's own separator, and shortened paths that use backslashes are cut at a folder boundary instead of mid-name.\n\n**Details**\n\n- Previously expansion keyed on `~\/`, which is not how a Windows path is written.\n- The shortening helper falls back to the last backslash when there is no forward slash in the path.\n\n**Evidence**\n\n`lastIndexOf(\"\\\\\")`\n\n- Area: Windows\n- Tier: You'll notice\n- Useful: 3\/5\n- Signal: 1\/5"}