The JavaScript implementation of version v0.2.0 of the fts_fuzzy_match algorithm by Forrest Smith, updated by @nrgwsth, to include the "exhaustive search" functionality described in the 2017 update to the Reverse Engineering Sublime Text’s Fuzzy Match article.
Table of Contents
fts_fuzzy_match.js
— Fuzzy Match v0.2.0 in JavaScript.test.sh
— test launcher.node-test.js
— Node.js test code.test_results.txt
— generated test results.
The fts_fuzzy_match.js
file was submitted by @nrgwsth via PR #10 (merge commit: cbce81f) on 2017-02-21.
The test.sh
and node-test.js
files were created and added by Tristano Ajmone.
For the original documentation, see ../../fuzzy_match.md
.
To run the tests, open the Bash shell and type (Node.js required):
./test.sh
which will produce the test_results.txt
file and compare it via diff
to ../expected_results.txt
, reporting whether they're identical (passed) or not (failed).
@nrgwsth published his source file under the same public domain terms of the original fts_fuzzy_match project:
This software is dual-licensed to the public domain and under the following license: you are granted a perpetual, irrevocable license to copy, modify, publish, and distribute this file as you see fit.
The test.sh
and node-test.js
test files were written by Tristano Ajmone and released into the public domain via the CC0 license.