SOLVED: Page settings: Backslash gets removed in JavaScript

Hi
I tried to replace white space from a String using regexp “replace(/\s/g,‘’)” and found that the backslash was removed from the script on the frontend. Adding a second backslash resulting in “replace(/\s/g,‘’)” then worked.

Hi gramir,
Thanks so much for your report!

Unfortunately, I cannot reproduce the issue. Would you be so kind as to provide a live link and a screencast using https://jam.dev showing and explaining what’s happening?

Best regards,
timmse

Hi timmse
I’m sorry if my post did explaine the issue a bit inaccurately. Please find the video here: https://dashboard.konvey.app/share/e6c858f8-94d8-4656-a904-ecacd698cb15.
Thanks, Mirco

Hi Mirco,
Thanks for the video!

I reproduced the issue and added it to our bug tracker.
In the meantime, you can use the code element and place it at the bottom of the page. This works instead of using the page settings.

Best regards,
timmse

Hi Stefan,
Got it, thank you very much!
Have a great day, Mirco

Hi guys,

Just to let you know, this issue was already fixed in 1.10, but since then we already released a newer version, Bricks 1.10.2, now available as a one-click update in your WordPress Dashboard.

Please let us know if you are still experiencing issues.

You can see the full changelog here: Bricks 1.10.2 Changelog – Bricks

Best regards,
M