mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-13 17:10:06 +00:00
add comment
This commit is contained in:
parent
2d001cb058
commit
bc5a9f5c0a
|
@ -141,6 +141,10 @@ const runRule: RuleRunner = (parse, text, rule) => {
|
|||
return undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
* Runs multiple rules at the same time to better handle nested rules.
|
||||
* Rules will be run in the order they appear.
|
||||
*/
|
||||
const runRules: RulesRunner = (parse, text, rules) => {
|
||||
const matchResults = rules.map((rule) => rule.match(text));
|
||||
|
||||
|
|
Loading…
Reference in a new issue