Cannot check if there is whitespace just before forward slash / in string JS
I am trying to check if there is whitespace just before forward slash / in string JS. I have this code now
const reWhiteSpace = new RegExp("\s(?=[^/\s]*/)"); reWhiteSpace.test(values.body). But it is not working as expected.