alemonjs 2.1.71 → 2.1.72
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.
- package/lib/app/router/dsl.js +2 -5
- package/package.json +1 -1
package/lib/app/router/dsl.js
CHANGED
|
@@ -143,12 +143,9 @@ function getLookupCandidates(event, keyPolicy) {
|
|
|
143
143
|
const maxWords = keyPolicy?.maxWords ?? 2;
|
|
144
144
|
const candidates = maxWords === 1
|
|
145
145
|
? [{ key: oneKey, keyLength: 1 }]
|
|
146
|
-
: [
|
|
147
|
-
...(twoKey ? [{ key: twoKey, keyLength: 2 }] : []),
|
|
148
|
-
{ key: oneKey, keyLength: 1 }
|
|
149
|
-
];
|
|
146
|
+
: [...(twoKey ? [{ key: twoKey, keyLength: 2 }] : []), { key: oneKey, keyLength: 1 }];
|
|
150
147
|
return {
|
|
151
|
-
normalizedCommand: parsed
|
|
148
|
+
normalizedCommand: parsed.normalizedText,
|
|
152
149
|
rawArgs: parsed.tokens,
|
|
153
150
|
candidates
|
|
154
151
|
};
|