Skip to content

subjectMatcher ​

Import from: @xbbg/xnews, @xbbg/xnews/parsers

subjectMatcher(terms): (item) => boolean

Defined in: src/sources/match.ts (declaration: sources/match.d.ts:18)

Builds a deterministic text matcher used to filter fixed market-news feeds (feeds without native per-subject query support) down to one subject.

  • query matches when every whitespace-separated token appears in the item text, case-insensitively, at token boundaries.
  • companyName matches as a case-insensitive boundary-guarded phrase.
  • ticker matches case-sensitively as a standalone uppercase token, which also covers $RGA and NYSE:RGA style mentions.

Parameters ​

terms ​

SubjectMatchTerms

Returns ​

(item) => boolean

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.