DIYgod / DIYgod/RSSHub

Call-maintainer matching issue

Open
#10,176 0 comments 0 reactions 0 assignees View on GitHub
core bug RSS bug
Dominant language
TypeScript
Stars
46.2k
Forks
10.2k
Avg merge
8h 48m
Merged PRs (30d)
175

Description

### 路由地址

```routes
NOROUTE
```

### 完整路由地址

```fullroutes
router.get('/discuz/:ver([7|x])/:cid([0-9]{2})/:link(.*)', lazyloadRouteHandler('./routes/discuz/discuz'));
router.get('/discuz/:ver([7|x])/:link(.*)', lazyloadRouteHandler('./routes/discuz/discuz'));
router.get('/discuz/:link(.*)', lazyloadRouteHandler('./routes/discuz/discuz'));
```

### 相关文档

https://docs.rsshub.app/bbs.html#discuz=

### 预期是什么?

Script should detect route matched.

### 实际发生了什么?

https://github.com/DIYgod/RSSHub/issues/10143 is closed by script.

### 部署

RSSHub 演示 (https://rsshub.app)

### 部署相关信息

_No response_

### 额外信息

```shell
Some route has custom route matching rules and simple string matching is not enough to handle this case.

For this case I would suggest making a script rule that ask contributor not to use such features. Since it will first generate confusing error messages (`route not found` instead of wrong parameters). Scripts should catch values and generate corresponded message instead.
```

### 这不是重复的 issue

- [X] 我已经搜索了[现有 issue](https://github.com/DIYgod/RSSHub/issues),以确保该错误尚未被报告。

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.