Bug Description
If WordPress is deployed with an unusual path prefix (notably WordPress Playground uses something like /scope:0.123456/), this isn't properly escaped and the resulting patterns fail to parse.
Steps to reproduce
- Go to https://playground.wordpress.net/?plugin=speculation-rules.
- Open one of the pages at the top level.
- Observe that there are errors in the developer console resulting pages.
Screenshots
n/a
Additional Context
- PHP Version: 7.4
- OS: Linux
- Browser: Chrome (121 beta)
- Plugin Version: trunk
- Device: Linux desktop
Bug Description
If WordPress is deployed with an unusual path prefix (notably WordPress Playground uses something like /scope:0.123456/), this isn't properly escaped and the resulting patterns fail to parse.
Steps to reproduce
Screenshots
n/a
Additional Context