Files
freeswitch/tests
Dmitry Verenitsin b5336ca3f9 [core] Cut switch_cut_path() at the last separator of either kind (#3298)
`switch_cut_path()` scanned for `/`, then restarted from the start of
the string for `\`, so whenever the last `\` came before the last `/`
the result still held `/`-separated components. Search for the last
`/` first, then for the last `\` in what follows it, so the result is
always what comes after the final separator, as documented.

Adds mixed-separator cases to
`test_switch_cut_path_strips_directory_components`.
2026-11-18 21:42:36 +03:00
..