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

removed useless regex characters escape #721

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

exeba
Copy link

@exeba exeba commented Feb 24, 2021

Fixes #699

krisu5 added a commit to aegis-icons/aegis-icons.github.io that referenced this pull request Jan 28, 2022
jamesadney added a commit to hfa3/list.js that referenced this pull request Feb 7, 2022
The search code used to use 'string'.search which takes regex
input. Now it used indexOf, so escaping is unnecessary and
causes search to break after on of the special characters is
entered.

From: javve#721
@larseggert
Copy link

Would like to +1 this PR. Fixing search is important to our use of list.js.

@NevGibson
Copy link

I would also like to +1 this request. Seems a shame to leave an important feature broken if the work has already been done to fix it.

@kseitz10
Copy link

kseitz10 commented Jul 1, 2022

Another +1. Wanted to use this library, but immediately encountered this problem. This has been neglected for over a year, so... I guess this project is dead?

@jonnydh
Copy link

jonnydh commented Aug 11, 2022

+1 for this request

jonnydh added a commit to hmrc/catalogue-frontend that referenced this pull request Aug 11, 2022
This bug was introduced in List.js:2.3.0, and a fix has been proposed
which has not yet been merged: javve/list.js#721

This commit uses the proposed fix above.
jonnydh added a commit to hmrc/catalogue-frontend that referenced this pull request Aug 11, 2022
This bug was introduced in List.js:2.3.0, and a fix has been proposed
which has not yet been merged: javve/list.js#721

This commit uses the proposed fix above.
jonnydh added a commit to hmrc/catalogue-frontend that referenced this pull request Aug 11, 2022
This bug was introduced in List.js:2.3.0, and a fix has been proposed
which has not yet been merged: javve/list.js#721

This commit uses the proposed fix above.
jonnydh added a commit to hmrc/catalogue-frontend that referenced this pull request Aug 11, 2022
This bug was introduced in List.js:2.3.0, and a fix has been proposed
which has not yet been merged: javve/list.js#721

This commit uses the proposed fix above.
jonnydh added a commit to hmrc/catalogue-frontend that referenced this pull request Aug 11, 2022
This bug was introduced in List.js:2.3.0, and a fix has been proposed
which has not yet been merged: javve/list.js#721

This commit uses the proposed fix above.

Futher detail:
Prior to v2.3.0, the search used regexp, so special chars had to be escaped.
However version 2.3.0 implemented a new, faster search which didn't use regexp.
Therefore by continuing to escape special chars, it's not possible to search for them.
This defunct 'replace' function should be removed
jonnydh added a commit to hmrc/catalogue-frontend that referenced this pull request Aug 12, 2022
This bug was introduced in List.js:2.3.0, and a fix has been proposed
which has not yet been merged: javve/list.js#721

This commit uses the proposed fix above.

Futher detail:
Prior to v2.3.0, the search used regexp, so special chars had to be escaped.
However version 2.3.0 implemented a new, faster search which didn't use regexp.
Therefore by continuing to escape special chars, it's not possible to search for them.
This defunct 'replace' function should be removed
jonnydh added a commit to hmrc/catalogue-frontend that referenced this pull request Aug 12, 2022
This bug was introduced in List.js:2.3.0, and a fix has been proposed
which has not yet been merged: javve/list.js#721

This commit uses the proposed fix above.

Futher detail:
Prior to v2.3.0, the search used regexp, so special chars had to be escaped.
However version 2.3.0 implemented a new, faster search which didn't use regexp.
Therefore by continuing to escape special chars, it's not possible to search for them.
This defunct 'replace' function should be removed
@shivraj-hiremath
Copy link

+1 for the request. The project looks dead to me? Then better to find an alternative.

@lovasoa
Copy link

lovasoa commented Aug 2, 2023

@javve : any chance this can be merged, or the author can be added as a contributor ?

That would fix a bug in SQLPage (and many other dependent projects, I guess)

@lovasoa
Copy link

lovasoa commented Aug 3, 2023

If anyone needs to depend on a package on npm with the fix, I published: https://www.npmjs.com/package/list.js-fixed

@wayheming
Copy link

+1 Same issue there.

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

Successfully merging this pull request may close these issues.

Search on regexp characters broken by v2.3.0
8 participants