{"action":"created","issue":{"url":"https://api.github.com/repos/julmot/mark.js/issues/110","repository_url":"https://api.github.com/repos/julmot/mark.js","labels_url":"https://api.github.com/repos/julmot/mark.js/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/julmot/mark.js/issues/110/comments","events_url":"https://api.github.com/repos/julmot/mark.js/issues/110/events","html_url":"https://github.com/julmot/mark.js/issues/110","id":204639758,"number":110,"title":"Adding limiters to each word and search for complete keyword","user":{"login":"Saeid2016","id":25425826,"avatar_url":"https://avatars.githubusercontent.com/u/25425826?v=3","gravatar_id":"","url":"https://api.github.com/users/Saeid2016","html_url":"https://github.com/Saeid2016","followers_url":"https://api.github.com/users/Saeid2016/followers","following_url":"https://api.github.com/users/Saeid2016/following{/other_user}","gists_url":"https://api.github.com/users/Saeid2016/gists{/gist_id}","starred_url":"https://api.github.com/users/Saeid2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Saeid2016/subscriptions","organizations_url":"https://api.github.com/users/Saeid2016/orgs","repos_url":"https://api.github.com/users/Saeid2016/repos","events_url":"https://api.github.com/users/Saeid2016/events{/privacy}","received_events_url":"https://api.github.com/users/Saeid2016/received_events","type":"User","site_admin":false},"labels":[{"id":169557516,"url":"https://api.github.com/repos/julmot/mark.js/labels/type:%20support","name":"type: support","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":{"login":"julmot","id":8310677,"avatar_url":"https://avatars.githubusercontent.com/u/8310677?v=3","gravatar_id":"","url":"https://api.github.com/users/julmot","html_url":"https://github.com/julmot","followers_url":"https://api.github.com/users/julmot/followers","following_url":"https://api.github.com/users/julmot/following{/other_user}","gists_url":"https://api.github.com/users/julmot/gists{/gist_id}","starred_url":"https://api.github.com/users/julmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julmot/subscriptions","organizations_url":"https://api.github.com/users/julmot/orgs","repos_url":"https://api.github.com/users/julmot/repos","events_url":"https://api.github.com/users/julmot/events{/privacy}","received_events_url":"https://api.github.com/users/julmot/received_events","type":"User","site_admin":false},"assignees":[{"login":"julmot","id":8310677,"avatar_url":"https://avatars.githubusercontent.com/u/8310677?v=3","gravatar_id":"","url":"https://api.github.com/users/julmot","html_url":"https://github.com/julmot","followers_url":"https://api.github.com/users/julmot/followers","following_url":"https://api.github.com/users/julmot/following{/other_user}","gists_url":"https://api.github.com/users/julmot/gists{/gist_id}","starred_url":"https://api.github.com/users/julmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julmot/subscriptions","organizations_url":"https://api.github.com/users/julmot/orgs","repos_url":"https://api.github.com/users/julmot/repos","events_url":"https://api.github.com/users/julmot/events{/privacy}","received_events_url":"https://api.github.com/users/julmot/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2017-02-01T16:52:13Z","updated_at":"2017-02-02T07:49:27Z","closed_at":"2017-02-02T07:49:27Z","body":"Hi,\r\nWhen \"separateWordSearch\" in options set to true, the mark() function adds the limiters defined in \"accuracy\" to end of each words in keyword and searchs for each word separately. Is it possible to do this (adding limiters to each words) when \"separateWordSearch\" value is false and search for whole keyword?\r\nfor example when we search for \"Lorem ipsum\" and \"separateWordSearch\" is false, I want to highlight keyword like this:\r\n\r\n**Lorem ipsum** dolor sit amet. **Lorem**: **ipsum** dolor sit amet, **Lorem**, (**ipsum**) dolor sit amet. Lorem dolor sit amet. ipsum dolor sit amet.\r\n\r\nthe bold words are highlighted.\r\n\r\nI set \"separateWordSearch\" value to false because I don't want to highlight each words of the keyword separately in any where.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/julmot/mark.js/issues/comments/276889943","html_url":"https://github.com/julmot/mark.js/issues/110#issuecomment-276889943","issue_url":"https://api.github.com/repos/julmot/mark.js/issues/110","id":276889943,"user":{"login":"julmot","id":8310677,"avatar_url":"https://avatars.githubusercontent.com/u/8310677?v=3","gravatar_id":"","url":"https://api.github.com/users/julmot","html_url":"https://github.com/julmot","followers_url":"https://api.github.com/users/julmot/followers","following_url":"https://api.github.com/users/julmot/following{/other_user}","gists_url":"https://api.github.com/users/julmot/gists{/gist_id}","starred_url":"https://api.github.com/users/julmot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julmot/subscriptions","organizations_url":"https://api.github.com/users/julmot/orgs","repos_url":"https://api.github.com/users/julmot/repos","events_url":"https://api.github.com/users/julmot/events{/privacy}","received_events_url":"https://api.github.com/users/julmot/received_events","type":"User","site_admin":false},"created_at":"2017-02-02T07:49:27Z","updated_at":"2017-02-02T07:49:27Z","body":"Hi @Saeid2016,\r\n\r\nSorry for the late response.  \r\n\r\n@Mottie already gave you the correct solution for this scenario: `.markRegExp()`. It's not possible to realize what you need using the `.mark()` method. We'd have to integrate some kind of a fuzzy mark option or supporting wildcards in queries like `?` or `*`. Follow #112 to see when you can switch to `.mark()` from `.markRegExp()`.\r\n\r\n@Mottie \r\n\r\n> It just seems a bit odd to me to include the parentheses.\r\n\r\nI agree here. As this isn't related to this issue I've created another one: https://github.com/julmot/mark.js/issues/113\r\n\r\n "}}
{"actor":{"display_login":"julmot"}}