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

Added case insentive variation of fl-contains #409

Merged
merged 3 commits into from
Jun 28, 2022
Merged

Conversation

nuno84
Copy link
Contributor

@nuno84 nuno84 commented Jun 28, 2022

Hi,
I needed to add a case insensitive version of fl-contains. I called it fl-icontains. Some websites whose content are hand-written have some case discrepancy on text.
I could not test the whole "mix test" because I keep having troubles compiling html5ever/lexbor on my windows machine.
So I used the default parser and tested manually.
I downcased the strings on the search. I am new to Elixir so there may be some optimization possible.
I will be glad for any suggestions, but please consider this feature as I find it necessary for what I want to do.
Thank you for your great work. I am enjoying this technology.

@philss
Copy link
Owner

philss commented Jun 28, 2022

@nuno84 looks great! Please run the formatter with mix format.

@nuno84
Copy link
Contributor Author

nuno84 commented Jun 28, 2022

Ok, I think it is done.
Please check.
Thank you

@philss philss merged commit 7f2213d into philss:master Jun 28, 2022
@nuno84
Copy link
Contributor Author

nuno84 commented Jun 28, 2022

I didnt increase the version.
Isn't it necessary?

@philss
Copy link
Owner

philss commented Jun 28, 2022

@nuno84 no, it's not necessary. I usually do that.

@philss
Copy link
Owner

philss commented Jun 28, 2022

@nuno84 this is published as v0.33.0 :)
Thank you! 💜

inoas added a commit to inoas/floki that referenced this pull request Aug 24, 2022
* master: (23 commits)
  Bump ex_doc from 0.28.4 to 0.28.5 (philss#416)
  Bump earmark from 1.4.26 to 1.4.27 (philss#415)
  Bump credo from 1.6.5 to 1.6.6 (philss#414)
  Bump dialyxir from 1.1.0 to 1.2.0 (philss#413)
  Bump credo from 1.6.4 to 1.6.5 (philss#412)
  Show retrieval of data attributes (philss#410)
  Release v0.33.1
  Improve the README.md file
  Fix warnings related to the tokenizer
  Change sponsors links - using GitHub Sponsors
  Release v0.33.0
  Added case insentive variation of fl-contains (philss#409)
  Bump html5ever from 0.13.0 to 0.13.1 (philss#407)
  Bump earmark from 1.4.25 to 1.4.26 (philss#406)
  Minor stuff I changed while reading (philss#404)
  Bump earmark from 1.4.24 to 1.4.25 (philss#403)
  Bump html5ever from 0.12.0 to 0.13.0 (philss#401)
  Bump ex_doc from 0.28.3 to 0.28.4 (philss#402)
  Remove case of 2 for tuple of :pi (philss#400)
  Bump earmark from 1.4.23 to 1.4.24 (philss#398)
  ...
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.

2 participants