{"version":"2.1.281","anchor":"absolute-path-checks-no-longer-hardcode","canonical_anchor":"absolute-path-checks-no-longer-hardcode","heading":"Absolute-path checks no longer hardcode '\/'","tier":"internal","area":"Windows","url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281\/e\/absolute-path-checks-no-longer-hardcode","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.281","markdown":"### Absolute-path checks no longer hardcode '\/'\n\nA check for whether a path is only the root folder now uses a shared separator constant and a path helper instead of a literal '\/'\n\n**Unclear.** The finding does not say which feature uses this check or whether its behaviour changes on any platform.\n\n**What**\n\nOne check that decides whether a path is only the root folder (the top of the file system) used to look for a literal `\/` and use `startsWith('\/')`. It now uses a separator constant and a path helper instead.\n\n**Why**\n\nThe check no longer assumes that every path starts with a forward slash.\n\n- Area: Windows\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5"}