Skip to content

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