30 lines
779 B
TypeScript
30 lines
779 B
TypeScript
// Module ID: 5024
|
|
// Function ID: 5025
|
|
// Name: match
|
|
// Dependencies: [4257, 2]
|
|
|
|
// Module 5024 (match)
|
|
import t from "t" /* 4257 */;
|
|
import tDefault from "t" /* 4257 */;
|
|
|
|
require = arg1;
|
|
const re2 = /\n$/;
|
|
let obj = {};
|
|
const merged = Object.assign(tDefault.defaultRules.heading);
|
|
obj.requiredFirstCharacters = [" ", "#"];
|
|
obj.match = function match(arg0, allowHeading, str) {
|
|
let tmp = null;
|
|
if (allowHeading.allowHeading) {
|
|
if (null != str) {
|
|
if ("" !== str) {
|
|
tmp = null;
|
|
}
|
|
}
|
|
tmp = t.anyScopeRegex(/^ *(#{1,3})(?:\s+)((?!\s*#{1,3}\s)[^\n]+?)#*\s*(?:\n|$)/)(arg0, allowHeading, str);
|
|
const obj = t;
|
|
}
|
|
return tmp;
|
|
};
|
|
const result = require("set").fileFinishedImporting("modules/markup/MarkupHeadingRule.tsx");
|
|
|
|
export default obj;
|