You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi James,
I was wondering, is it possible to see what strings in the DOM matched the find: RegExp?
I am using the following options and would like to know which strings where matched.
var searchConfig = {
find: new RegExp(pool.searchText, 'g'),
wrap: wType || 'span',
wrapClass: wClass || 'filter-number',
};
var finder = findAndReplaceDOMText(domElement, searchConfig);
Since the matches are popped finder.matches is empty after execution.
Is there a way to seperate find and wrap function calls to extract the matches in beween?
If not I could implement some 'persistentMatches: true' flag that would write the matches into this.persistentMatches or so?
Keep up the awsome work.
Thank you
Christian
The text was updated successfully, but these errors were encountered:
Hi James,
I was wondering, is it possible to see what strings in the DOM matched the find: RegExp?
I am using the following options and would like to know which strings where matched.
Since the matches are popped finder.matches is empty after execution.
Is there a way to seperate find and wrap function calls to extract the matches in beween?
If not I could implement some 'persistentMatches: true' flag that would write the matches into this.persistentMatches or so?
Keep up the awsome work.
Thank you
Christian
The text was updated successfully, but these errors were encountered: