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

optimize+bugfix: 优化 util.match.js,简化配置,同时修复匹配错乱的问题。 #279

Merged

Conversation

wangliang181230
Copy link
Contributor

@wangliang181230 wangliang181230 commented Mar 26, 2024

optimize+bugfix: 优化 util.match.js,简化配置,同时修复匹配错乱的问题。

  1. Optimize:简化配置说明:

    • 优化后:
      配置 *.github.com,可以同时匹配到一级(如:github.com)和 多级(如:collect.github.com)。
    • 优化前:
      配置 *github.com,虽然也可以匹配到一级和多级域名,但也会匹配到其他域名,如:aaaa.xxxxgithub.com
      配置 *.github.com,只能匹配多级(如:collect.github.com),无法匹配到一级域名(如:github.com)。
      要想达到同时匹配一级和多级域名,必须配置两个:github.com*.github.com,比较麻烦。
  2. Bugfix:原来的逻辑匹配错乱的问题说明:
    如配置 *.cn,会匹配到 xxx.cnet.com

@wangliang181230 wangliang181230 merged commit 3b224a7 into docmirror:master Mar 26, 2024
@wangliang181230 wangliang181230 deleted the optimize-util.match.js branch March 26, 2024 04:18
@wangliang181230 wangliang181230 added Optimize 优化的PR Bugfix 修复BUG的PR labels Mar 29, 2024
@wangliang181230 wangliang181230 changed the title optimize: 优化 util.match.js,简化配置,同时修复匹配错乱的问题。 optimize+bugfix: 优化 util.match.js,简化配置,同时修复匹配错乱的问题。 Mar 29, 2024
@wangliang181230 wangliang181230 added this to the 1.8.0 milestone Apr 11, 2024
@wangliang181230 wangliang181230 added v1.8.0 1.8.0版本 and removed v1.8.0 1.8.0版本 labels Apr 21, 2024
@wangliang181230 wangliang181230 added the v1.8.0 1.8.0版本 label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bugfix 修复BUG的PR Optimize 优化的PR v1.8.0 1.8.0版本
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant