6e7e6337980ef6fd9ec7af6589a0007bfdc0e794
Move the pre-migration regex.mq.md content into this repository's package entry. The module leaves the default Bundle and is consumed through the explicit @regex package import; the pure subset and the existing host-backed paths keep their behaviour and the original test terminal value. Refs cflmy/marqdo#9, cflmy/marqdo-ext-regex#1
marqdo-ext-regex
本仓负责正则匹配、捕获、扫描与替换(显式 Package)。当前处于标准库源码归位迁移阶段:领域模块已迁入本仓作为显式 Package,等待父仓候选组合验收(父仓工单 marqdo#9,本仓工单 #1)。
现行形态:显式 Package,不进入默认 Bundle
- 入口:
index.mq.md(marqdo.yaml声明 package)。 - 消费者声明依赖并用公开
@alias导入:
# consumer/marqdo.yaml
dependencies:
regex:
git: https://git.cflmy.cn/cflmy/marqdo-ext-regex
rev: <精确提交>
---
import:
regex: "@regex"
---
## @exec main
`return regex.<函数>(...)`
- 不再以
std:regex提供,不保留隐藏 fallback;默认标准库 Bundle 不包含本模块。 - 测试:
scripts/test.sh只接受MARQDO_BIN+MARQDO_STDLIB_DIR,用临时消费者工程经marqdo lock与@alias公开导入执行。
index.mq.md:原 regex.mq.md 的纯 Marqdo 子集与宿主薄包装函数,公开为 Package 入口(消费者通过 @regex 导入)
边界
不进入默认 Bundle,不提供 std:regex;不新增第三个正则引擎,CLI 既有 regex.match/regex.captures 宿主请求保留;如实记录纯子集与宿主路径的语义差异。
目录
index.mq.md:Package 入口与唯一公开入口。tests/:迁入的领域测试源与期望。scripts/:独立验收入口。
Languages
Python
94.3%
Shell
5.7%