contextMatcher option, to allow complex context matching rules#31
contextMatcher option, to allow complex context matching rules#31gil wants to merge 1 commit intodrewzboto:masterfrom
Conversation
|
What if instead of a new contextMatcher option, we just expanded the context option to recognize a function or array of functions as use that as the matching function? |
|
Humm, nice!! I didn't think about that because when I implemented the contextMatcher, you hadn't implemented the context array. I just rewrote everything yesterday from your latest version to send the pull request and make it easier to merge. Do you want me to do it here? |
|
Yeah if could make that change in the PR, that would be awesome. if not, i'll take care of it this week. |
|
Where can I find the documentation for Right now, I am stuck with context as exact match - I wish if we had regex match for context as well. My real-life use case:
I feel very limited with exact matches instead of regex. |
|
+1 could either a matching function, or |
I needed the ability to set custom context matchers, to handle url exceptions instead of exact matches. So I'm sharing my changes, if you think it will also be useful for other users :]