Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

%t.replace search param is not replacing the text #151

Open
Omaeda opened this issue Jul 22, 2024 · 1 comment
Open

%t.replace search param is not replacing the text #151

Omaeda opened this issue Jul 22, 2024 · 1 comment

Comments

@Omaeda
Copy link

Omaeda commented Jul 22, 2024

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)
@hoothin
Copy link
Owner

hoothin commented Jul 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants