We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a64c7f commit 203e46bCopy full SHA for 203e46b
src/renderer/pipes/fuzzy.pipe.ts
@@ -1,9 +1,9 @@
1
import { Pipe, PipeTransform } from '@angular/core';
2
-import * as Fuzzy from 'fuzzaldrin-plus';
+const Fuzzy = require('fuzzaldrin-plus');
3
4
@Pipe({ name: 'fuzzyTest' })
5
export class FuzzyTestPipe implements PipeTransform {
6
transform(inputString: string, query: string) {
7
- return query.length > 0 ? Fuzzy.score(inputString, query) !== 0 : true;
+ return query.length > 0 ? Fuzzy.score(inputString, query, { usePathScoring: false }) !== 0 : true;
8
}
9
0 commit comments