Я пытаюсь добавить тестовый пример для одной из функций очистки обхода пути. Но это не удается по следующей причине: .
The main function looks like this:-
And a test class as:-
Any advice on this will help, as I tried a few combinations of regex & related patterns already. But it didn't work. The 1st line of code was there before & only new lines regarding patterns were added. The below screenshots is just an example but I tried basically replace(\),replaceAll(\\), replaceAll(\\/) etc
So I see the error from the logs as below, Which is not working in Unix of course. So targeting to see only forward slash as it's for Unix.
введите описание изображения здесь