MCPcopy Create free account
hub / github.com/TruthHun/BookStack / createMatcherSuffixesRule

Function createMatcherSuffixesRule

static/word2md/mammoth.browser.js:2794–2807  ·  view source on GitHub ↗
(rules)

Source from the content-addressed store, hash-verified

2792 });
2793
2794 function createMatcherSuffixesRule(rules) {
2795 var matcherSuffix = lop.rules.firstOf.apply(
2796 lop.rules.firstOf,
2797 ["matcher suffix"].concat(rules)
2798 );
2799 var matcherSuffixes = lop.rules.zeroOrMore(matcherSuffix);
2800 return lop.rules.then(matcherSuffixes, function(suffixes) {
2801 var matcherOptions = {};
2802 suffixes.forEach(function(suffix) {
2803 _.extend(matcherOptions, suffix);
2804 });
2805 return matcherOptions;
2806 });
2807 }
2808
2809 var paragraphOrRun = sequence(
2810 sequence.capture(elementTypeRule),

Callers 1

documentMatcherRuleFunction · 0.70

Calls 1

extendMethod · 0.80

Tested by

no test coverage detected