-
Notifications
You must be signed in to change notification settings - Fork 333
重写UrlMatch #637
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
Merged
Merged
重写UrlMatch #637
Changes from all commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
cd677a9
重写UrlMatch
cyfung1031 52a1bd8
Merge branch 'main' into pr/cyfung1031/637
CodFrm 4658d7f
整理代码
CodFrm ee9109f
添加单元测试
CodFrm 90435fc
兼容 .tld
cyfung1031 bd43ff5
修正 match pattern ** 问题
cyfung1031 499db23
代码及测试修正
cyfung1031 6d2f382
补充单元测试
CodFrm 1ff927a
调整单元测试
CodFrm 60fc52b
将单元测试url换成更实际的url
CodFrm 24d5e2d
修改单元测试
CodFrm 16e38d8
修改01
cyfung1031 12e7ecb
file应该是三个斜杠
CodFrm 843cde4
Merge branch 'urlmatcher01a' of github.com:cyfung1031/scriptcat into …
CodFrm 9e4223a
修正02
cyfung1031 588e459
修正03
cyfung1031 d376259
修正04
cyfung1031 35c1045
add -> addInclude
cyfung1031 6486d7f
customUrlCovering -> customMUP
cyfung1031 211ad86
urlCovering -> scriptMUP
cyfung1031 bcd407e
metaUMatchAnalyze -> extractMUP
cyfung1031 814b283
修正05
cyfung1031 4f18778
lint fix
cyfung1031 e01a620
注释修正
cyfung1031 3566c32
注释修正
cyfung1031 36d359f
内部测试补充
cyfung1031 8987f37
glob *? -> ?*
cyfung1031 7e31221
單元測試 glob-test-3
cyfung1031 146f1c2
修正06
cyfung1031 1acd054
MUP -> UrlPatterns
cyfung1031 d493142
修正07
cyfung1031 c04edcb
加注释:GM 的 magic tld 说明
cyfung1031 4eb8098
glob * 修正
cyfung1031 ce90f09
代码优化,注释补充
cyfung1031 a6c93ea
修正特殊處理,修正單元測試
cyfung1031 9b98598
Update match.test.ts
cyfung1031 19e0c92
处理lint问题
CodFrm d32725e
代码优化
cyfung1031 f3313f1
lint
cyfung1031 027b362
sorter 相关代码优化
cyfung1031 e8f2a84
变数名统一 strBlacklist
cyfung1031 9dee93c
修正 regex pattern 没有匹配到页面问题
cyfung1031 4c90a02
wildcard處理
cyfung1031 0cff1b6
lint
cyfung1031 3288b27
注釋修正
cyfung1031 71a90e5
把glob的指定网域取出来
cyfung1031 0df7270
效能修正
cyfung1031 9b1ad03
处理review问题
CodFrm 210b901
单元测试优化,加强错误处理
cyfung1031 1c12c41
改进代码处理
cyfung1031 23e56e6
lint
cyfung1031 68019b5
extractSchemesOfGlobs, 单元测试调整
cyfung1031 72cfb3b
⚡ runtime.ts 代码优化 (#642)
cyfung1031 1aecb30
🎨 getEnableScript 优化 (#645)
cyfung1031 fa5ff7d
Merge branch 'main' into urlmatcher01a
cyfung1031 69e23e7
lint
cyfung1031 a9e8e17
誤字
cyfung1031 2f7e706
加注釋
cyfung1031 7bd1a72
lint
cyfung1031 c937880
微调 regex pattern ruleContent
cyfung1031 941664d
RuleType
cyfung1031 9b3bf7d
增加单元测试 (extractMatchPatternsFromGlobs, extractSchemesOfGlobs)
cyfung1031 f8afbe2
配合使用情景,增强 regexToGlob处理
cyfung1031 71e4f18
vitest 测试顺序
cyfung1031 63c2298
url_matcher.test.js -> url_matcher.test.ts
cyfung1031 7946e38
🐛 兼容较低的浏览器内核 #647
CodFrm 64b6a66
Merge branch 'main' into urlmatcher01a
cyfung1031 730575d
Merge branch 'main' into urlmatcher01a
cyfung1031 188e496
移除 vitest 测试顺序
cyfung1031 4b29825
增强 regexToGlob处理
cyfung1031 02bd297
刪去不必要code
cyfung1031 d7792ea
单元测试調整
cyfung1031 c620060
单元测试調整
cyfung1031 f5ebb92
regexToGlob 规范化连续 修正
cyfung1031 c4797fe
刪去不必要code
cyfung1031 717f420
補充注釋
cyfung1031 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.