Theia API Documentation v1.70.0
Eclipse Theia Website
GitHub
Preparing search index...
@theia/core
common/fuzzy-match-utils
matchRank
Function matchRank
matchRank
(
text
:
string
,
pattern
:
string
)
:
number
Returns a numeric rank for how well
pattern
matches
text
:
0: prefix match (best)
1: substring match
2: fuzzy-only match (worst)
Parameters
text
:
string
pattern
:
string
Returns
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Eclipse Theia Website
GitHub
Theia API Documentation v1.70.0
Loading...
Returns a numeric rank for how well
patternmatchestext: