mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Don't match version until we have a dot in the query.
This commit is contained in:
parent
50e4dfd47b
commit
581689d67a
2 changed files with 7 additions and 1 deletions
|
@ -81,6 +81,12 @@ module.exports = function DeviceColumnService($filter, gettext) {
|
|||
, lb = vb.length
|
||||
, op = filterOps[filter.op || '=']
|
||||
|
||||
// We have a single value and no operator or field. It matches
|
||||
// too easily, let's wait for a dot (e.g. '5.').
|
||||
if (filter.op === null && filter.field === null && lb === 1) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (vb[lb - 1] === '') {
|
||||
// This means that the query is not complete yet, and we're
|
||||
// looking at something like "4.", which means that the last part
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue