SearchJumper icon indicating copy to clipboard operation
SearchJumper copied to clipboard

%t.replace search param is not replacing the text

Open Omaeda opened this issue 1 year ago • 1 comments

Describe the bug %t.replace search param does not replace the text when there is a space between the matched text and the substitution.

To Reproduce Steps to reproduce the behavior:

  1. Create a new engine using %t.replace() in the URL
  2. Use a regex pattern in the replace function that ends with .* 2.1 Example: %t.replace(/.+/(\w+).*/, "$1")

Expected behavior The link should be replaced by the last word found

Screenshots imagen imagen

Desktop (please complete the following information):

  • OS: Linux Mint
  • Browser: Firefox
  • Version: 128.0 (64-bit)

Omaeda avatar Jul 22 '24 13:07 Omaeda

Thank you, I missed an escape character. It's fixed now.

hoothin avatar Jul 23 '24 00:07 hoothin