Skip to content

Commit 5fff6ee

Browse files
committed
Add a note about what a numeric query term value means
1 parent 6139051 commit 5fff6ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sidebar/helpers/view-filter.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ function normalize(val) {
5858
class TermFilter {
5959
/**
6060
* @param {string} field - Name of field to match
61-
* @param {string|number} term - Query term
61+
* @param {string|number} term - Query term or value. Most fields use string
62+
* terms, but eg. `since` is parsed into a number first.
6263
* @param {Checker} checker - Functions for extracting term values from
6364
* an annotation and checking whether they match a query term.
6465
*/

0 commit comments

Comments
 (0)