Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default rewrite improve #36

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jiadesen
Copy link
Contributor

@jiadesen jiadesen commented Apr 6, 2023

#35

改进后的默认 rewrite 规则最后增加了 (?:\.html?)?(\?|#|$).* 内容,说明如下:

  1. (?:\.html?)?:非捕获组,它匹配 .html.htm,这个组后面的 ? 表示这个组是可选的,也就是说,它可以出现 0 次或 1 次。
  2. (\?|#|$):捕获组,它匹配 ?# 或结束符号 $,这个组表示 URL 中参数的开始位置。
  3. .*:标识匹配 0 个或多个任意字符,也就是 URL 中参数的内容。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant