aboutsummaryrefslogtreecommitdiff
path: root/static/js/fuzzysort.js
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2024-02-13 17:06:13 -0500
committertdro <tdro@noreply.example.com>2024-02-13 17:06:13 -0500
commit89f898e918308c728d600e97056e2ce8ad72c2de (patch)
tree431fa9a08212db39667b52d2bbed1c859709904c /static/js/fuzzysort.js
parentd23d5bc6dae8035357f1dea088392ab3d2546f8e (diff)
downloadcanory-89f898e918308c728d600e97056e2ce8ad72c2de.tar.gz
canory-89f898e918308c728d600e97056e2ce8ad72c2de.tar.bz2
canory-89f898e918308c728d600e97056e2ce8ad72c2de.zip
static/js: Licensing and organising
Make easier to search and find originals
Diffstat (limited to 'static/js/fuzzysort.js')
-rw-r--r--static/js/fuzzysort.js19
1 files changed, 3 insertions, 16 deletions
diff --git a/static/js/fuzzysort.js b/static/js/fuzzysort.js
index 5e0dd0f..71c2fcb 100644
--- a/static/js/fuzzysort.js
+++ b/static/js/fuzzysort.js
@@ -1,22 +1,9 @@
-// https://github.com/farzher/fuzzysort v2.0.4
/*
- SublimeText-like Fuzzy Search
-
- fuzzysort.single('fs', 'Fuzzy Search') // {score: -16}
- fuzzysort.single('test', 'test') // {score: 0}
- fuzzysort.single('doesnt exist', 'target') // null
-
- fuzzysort.go('mr', [{file:'Monitor.cpp'}, {file:'MeshRenderer.cpp'}], {key:'file'})
- // [{score:-18, obj:{file:'MeshRenderer.cpp'}}, {score:-6009, obj:{file:'Monitor.cpp'}}]
-
- fuzzysort.go('mr', ['Monitor.cpp', 'MeshRenderer.cpp'])
- // [{score: -18, target: "MeshRenderer.cpp"}, {score: -6009, target: "Monitor.cpp"}]
-
- fuzzysort.highlight(fuzzysort.single('fs', 'Fuzzy Search'), '<b>', '</b>')
- // <b>F</b>uzzy <b>S</b>earch
+ * Fuzzy Sort Copyright (C) 2018 Stephen Kamenar
+ * https://github.com/farzher/fuzzysort/blob/master/LICENSE
+ * Licence: MIT | https://mit-license.org/
*/
-// UMD (Universal Module Definition) for fuzzysort
;((root, UMD) => {
if(typeof define === 'function' && define.amd) define([], UMD)
else if(typeof module === 'object' && module.exports) module.exports = UMD()