Expand all

ve.dm.TextFinder

Constructor

new ve.dm.TextFinder([options]) #

Finder of text content within lines of text

Parameters:

Name Type Attributes Description
options Object optional

Search options

Properties:
Name Type Attributes Description
wholeWord boolean optional

Only match whole-word occurrences

Source:
Finder of text content within lines of text

Properties

findRanges #

Find the matching ranges, without checking for word boundaries

Source:
Find the matching ranges, without checking for word boundaries

Methods

find(line) → {Array.<Array>} #

Parameters:

Name Type Description
line string

The line of text to match

Source:

Returns:

Match ranges [ [ start1, end1 ], ... ]

Type
Array.<Array>