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 a new operator (~=) to compare strings. #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added a new operator (~=) to compare strings. #2

wants to merge 1 commit into from

Commits on Mar 2, 2016

  1. Added a new operator (~=) to compare strings.

    Now you should be able to do this:
    "Louis-Ferdinand Céline" ~= "louis ferdinand celine" // true
    
    By default it returns true if the strings are 40% different or less.
    This value can be adjusted by changing the tolerance variable in the
    operator definition.
    
    I also added an example to the sample app, but I commented it out so as
    to not interfere with the regular example.
    danielbmarques authored and danielbmarques committed Mar 2, 2016
    Configuration menu
    Copy the full SHA
    603cbd4 View commit details
    Browse the repository at this point in the history