There was an error while loading. Please reload this page.
1 parent c17d42b commit a32e9f6Copy full SHA for a32e9f6
lib/internal/readline/utils.js
@@ -195,11 +195,11 @@ function* emitKeys(stream) {
195
const cmd = StringPrototypeSlice(s, cmdStart);
196
let match;
197
198
- if ((match = RegExpPrototypeExec(/^(?:(\d\d?)(?:;(\d))?[~^$]|(\d{3}~))$/, cmd))) {
199
- if (match[3]) {
200
- code += match[3];
+ if ((match = RegExpPrototypeExec(/^(?:(\d\d?)(?:;(\d))?([~^$])|(\d{3}~))$/, cmd))) {
+ if (match[4]) {
+ code += match[4];
201
} else {
202
- code += match[1];
+ code += match[1] + match[3];
203
modifier = (match[2] || 1) - 1;
204
}
205
} else if (
0 commit comments