@webamoki/web-svelte 0.5.18 → 0.5.19

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.
@@ -46,12 +46,14 @@ export function fuzzySearch(needle, haystack) {
46
46
  return false;
47
47
  }
48
48
  if (nlen === hlen) {
49
- return needle === haystack;
49
+ return needle.toLowerCase() === haystack.toLowerCase();
50
50
  }
51
+ const lowerNeedle = needle.toLowerCase();
52
+ const lowerHaystack = haystack.toLowerCase();
51
53
  outer: for (let i = 0, j = 0; i < nlen; i++) {
52
- const nch = needle.charCodeAt(i);
54
+ const nch = lowerNeedle.charCodeAt(i);
53
55
  while (j < hlen) {
54
- if (haystack.charCodeAt(j++) === nch) {
56
+ if (lowerHaystack.charCodeAt(j++) === nch) {
55
57
  continue outer;
56
58
  }
57
59
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.5.18",
6
+ "version": "0.5.19",
7
7
  "license": "MIT",
8
8
  "files": [
9
9
  "dist",