Implement link matcher priorities

Fixes #549
This commit is contained in:
Daniel Imms
2017-03-02 11:25:27 -08:00
parent 670fb01fbf
commit 7ac4f1a9be
4 changed files with 71 additions and 15 deletions
+6
View File
@@ -85,6 +85,12 @@ export interface LinkMatcherOptions {
* false if invalid.
*/
validationCallback?: LinkMatcherValidationCallback;
/**
* The priority of the link matcher, this defines the order in which the link
* matcher is evaluated relative to others, from highest to lowest. The
* default value is 0.
*/
priority?: number;
}
/**