2026-07-25 08:10:48 +00:00
|
|
|
// Module ID: 4573
|
2026-07-27 11:26:19 +00:00
|
|
|
// Function ID: 40107
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: textRegexp
|
2026-07-25 08:10:48 +00:00
|
|
|
// Dependencies: [3830, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: textMarkupPatternWithExclusions
|
|
|
|
|
|
2026-07-25 08:10:48 +00:00
|
|
|
// Module 4573 (textRegexp)
|
2026-07-23 10:11:24 +00:00
|
|
|
import t from "t";
|
|
|
|
|
|
2026-07-20 16:05:17 +00:00
|
|
|
const tmp2 = /^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|[0-9]+\.|$)/;
|
|
|
|
|
const obj = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
const merged = Object.assign(require("t").defaultRules.text);
|
|
|
|
|
obj["match"] = t.anyScopeRegex(tmp2);
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/markup/MarkupTextRule.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default obj;
|
|
|
|
|
export const textRegexp = tmp2;
|
|
|
|
|
export const textMarkupPatternWithExclusions = function textMarkupPatternWithExclusions(textExclusions) {
|
|
|
|
|
const regExp = new RegExp("^[\\s\\S]+?(?=" + textExclusions + "|[^0-9A-Za-z\\s\\u00ff-\\uffff]|\\n\\n| {2,}\\n|\\w+:\\S|[0-9]+\\.|$)");
|
|
|
|
|
return regExp;
|
|
|
|
|
};
|