mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-12 01:55:46 +01:00
Fix last commit.
This commit is contained in:
@@ -622,9 +622,9 @@ var HintSession = Class("HintSession", CommandMode, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
updateValidNumbers: function updateValidNumbers() {
|
updateValidNumbers: function updateValidNumbers() {
|
||||||
let re = RegExp(util.regexp.escape(this.getHintString(this.hintNumber)) + "$");
|
let string = this.getHintString(this.hintNumber);
|
||||||
for (let hint in values(this.validHints))
|
for (let hint in values(this.validHints))
|
||||||
hint.valid = re.test(hint.span.getAttribute("number"));
|
hint.valid = hint.span.getAttribute("number").indexOf(string) == 0;
|
||||||
},
|
},
|
||||||
|
|
||||||
tab: function tab(previous) {
|
tab: function tab(previous) {
|
||||||
|
|||||||
Reference in New Issue
Block a user