Skip to content

Commit

Permalink
fix(web): do not simplify nul-prefixed contexts when rule-matching
Browse files Browse the repository at this point in the history
Fixes: #12987
  • Loading branch information
Joshua Horton committed Jan 23, 2025
1 parent 9bb8038 commit 4832903
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions web/src/engine/js-processor/src/kbdInterface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,18 +373,6 @@ export default class KeyboardInterface extends KeyboardHarness {
// Now that we have the cache...
var subCache = cache;
subCache.valContext = subCache.valContext.slice(0, ln);
for(var i=0; i < subCache.valContext.length; i++) {
if(subCache.valContext[i] == '\ufffe') {
subCache.valContext.splice(0, 1);
subCache.deadContext.splice(0, 1);
}
}

if(subCache.valContext.length == 0) {
subCache.valContext = ['\ufffe'];
subCache.deadContext = [];
}

this.cachedContextEx.set(n, ln, subCache);

return subCache;
Expand Down

0 comments on commit 4832903

Please sign in to comment.