Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[match-highlighter] Added wordsOnly option #2791

Closed
wants to merge 3 commits into from

Conversation

danieleds
Copy link
Contributor

Adds the option to highlight the selection only if it's a word.
The "delay" option was missing from the documentation, I added it.

@danieleds danieleds changed the title Added wordsOnly option. Updated documentation. [match-highlighter] Added wordsOnly option Sep 1, 2014
}
if (this.style == null) this.style = DEFAULT_TOKEN_STYLE;
if (this.minChars == null) this.minChars = DEFAULT_MIN_CHARS;
if (this.delay == null) this.delay = DEFAULT_DELAY;
if (this.wordsOnly == null) this.delay = DEFAULT_WORDS_ONLY;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have this.delay where it should be this.wordsOnly.

@danieleds
Copy link
Contributor Author

Sorry, is this ready to be merged?

@marijnh
Copy link
Member

marijnh commented Sep 17, 2014

Yes, it is. Merged as f09b6c5

Note that I do not get an email notification when you push to a pull request branch, and thus am unlikely to notice. It is a good idea to add a comment when you want me to look at the code again.

@marijnh marijnh closed this Sep 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants