@woosh/meep-engine 2.129.2 → 2.129.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"description": "Pure JavaScript game engine. Fully featured and production ready.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": "Alexander Goldring",
|
|
8
|
-
"version": "2.129.
|
|
8
|
+
"version": "2.129.3",
|
|
9
9
|
"main": "build/meep.module.js",
|
|
10
10
|
"module": "build/meep.module.js",
|
|
11
11
|
"exports": {
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Calculate the Jaro-Winkler distance between two strings
|
|
2
|
+
* Calculate the Jaro-Winkler distance between two strings.
|
|
3
|
+
* Useful for sorting and fuzzy matching.
|
|
4
|
+
*
|
|
3
5
|
* @param {string} first The string to compare
|
|
4
6
|
* @param {string} second The string to compare with
|
|
5
7
|
* @returns {number} similarity score, higher value means strings are more similar, between 0 and 1
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* string_jaro_winkler("Hello", "Hello") === 1
|
|
11
|
+
* string_jaro_winkler("apple", "orange") === 0.58
|
|
12
|
+
* string_jaro_winkler("how are you?", "are you good?") === 0.74
|
|
6
13
|
*/
|
|
7
14
|
export function string_jaro_winkler(first: string, second: string): number;
|
|
8
15
|
//# sourceMappingURL=string_jaro_winkler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string_jaro_winkler.d.ts","sourceRoot":"","sources":["../../../../../src/core/primitives/strings/string_jaro_winkler.js"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"string_jaro_winkler.d.ts","sourceRoot":"","sources":["../../../../../src/core/primitives/strings/string_jaro_winkler.js"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,2CATW,MAAM,UACN,MAAM,GACJ,MAAM,CAkClB"}
|
|
@@ -3,10 +3,17 @@ import { min3 } from "../../math/min3.js";
|
|
|
3
3
|
import { string_jaro_distance } from "./string_jaro_distance.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* Calculate the Jaro-Winkler distance between two strings
|
|
6
|
+
* Calculate the Jaro-Winkler distance between two strings.
|
|
7
|
+
* Useful for sorting and fuzzy matching.
|
|
8
|
+
*
|
|
7
9
|
* @param {string} first The string to compare
|
|
8
10
|
* @param {string} second The string to compare with
|
|
9
11
|
* @returns {number} similarity score, higher value means strings are more similar, between 0 and 1
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* string_jaro_winkler("Hello", "Hello") === 1
|
|
15
|
+
* string_jaro_winkler("apple", "orange") === 0.58
|
|
16
|
+
* string_jaro_winkler("how are you?", "are you good?") === 0.74
|
|
10
17
|
*/
|
|
11
18
|
export function string_jaro_winkler(first, second) {
|
|
12
19
|
assert.isString(first, 'first');
|