mirror of
https://github.com/nasa/openmct.git
synced 2025-05-06 10:38:23 +00:00
[Search] Comments
Added comments to better explain how input processing works.
This commit is contained in:
parent
1d0d2302d8
commit
bf0e6692f5
@ -140,8 +140,13 @@ define(
|
|||||||
searchTerm = document.getElementById("searchinput").value;
|
searchTerm = document.getElementById("searchinput").value;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process search term
|
// Process search term.
|
||||||
// Put wildcards on front and end to allow substring behavior
|
// Put wildcards on front and end to allow substring behavior.
|
||||||
|
// This works when options like AND and OR are not used, which is
|
||||||
|
// the case most of the time.
|
||||||
|
// e.g. The input 'sine' become '*sine*', but the input
|
||||||
|
// 'sine OR telemetry' becomes '*sine OR telemetry*' instead of
|
||||||
|
// '*sine* OR *telemetry*'
|
||||||
searchTerm = '*' + searchTerm + '*';
|
searchTerm = '*' + searchTerm + '*';
|
||||||
|
|
||||||
// Get the data...
|
// Get the data...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user