mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
Fixed broken auto completion in CLI
This commit is contained in:
parent
2edb462615
commit
72e9bcf6ba
@ -106,7 +106,7 @@ function completer (text) {
|
||||
for (var n in Unit.UNITS) {
|
||||
if (Unit.UNITS.hasOwnProperty(n)) {
|
||||
if (n.indexOf(unitKeyword) == 0 &&
|
||||
Unit.isPlainUnit(prefix + n)) {
|
||||
Unit.isValuelessUnit(prefix + n)) {
|
||||
matches.push(prefix + n);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user