Add matching text to the current DOM selection.
Searches document for string
or selection.toString()
and selects matching ranges.
selection
defaults to window.getSelection()
.
Returns Selection object.
Clears current selection before updating. Defaults to false
.
Whether to ignore case while attempting a match in a string. Defaults to false
.
npm install expand-selection
MIT