mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-15 02:17:32 +00:00
Merge pull request #15683 from keymanapp/fix/quotient-spur-extraction
fix(web): remove legacy-spur specific handling 🚂
This commit is contained in:
commit
16ccb7ff5e
1 changed files with 0 additions and 9 deletions
|
|
@ -362,11 +362,8 @@ export abstract class SearchQuotientSpur implements SearchQuotientNode {
|
|||
|
||||
// Forbid a raw edit-distance of greater than 2.
|
||||
// Note: .knownCost is not scaled, while its contribution to .currentCost _is_ scaled.
|
||||
let substitutionsOnly = false;
|
||||
if(currentNode.editCount > 2) {
|
||||
return unmatchedResult as PathResult;
|
||||
} else if(currentNode.editCount == 2) {
|
||||
substitutionsOnly = true;
|
||||
}
|
||||
|
||||
// Thresholds _any_ path, partially based on currently-traversed distance.
|
||||
|
|
@ -388,12 +385,6 @@ export abstract class SearchQuotientSpur implements SearchQuotientNode {
|
|||
// OK, we fully crossed a graph edge and have landed on a transition point;
|
||||
// time to build more edges / edge batches.
|
||||
|
||||
// Always possible, as this does not require any new input.
|
||||
if(!substitutionsOnly) {
|
||||
let insertionEdges = currentNode.buildInsertionEdges();
|
||||
this.selectionQueue.enqueueAll(insertionEdges);
|
||||
}
|
||||
|
||||
if(currentNode.spaceId == this.spaceId) {
|
||||
if(this.returnedValues) {
|
||||
if((this.returnedValues[currentNode.resultKey]?.currentCost ?? Number.POSITIVE_INFINITY) > currentNode.currentCost) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue