Merge pull request #15683 from keymanapp/fix/quotient-spur-extraction

fix(web): remove legacy-spur specific handling 🚂
This commit is contained in:
Joshua Horton 2026-03-07 02:01:21 +07:00 • committed by GitHub
commit 16ccb7ff5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {