Repository navigation
test(exclude-filter): pin substring and escaped provider-name behavior (#356) - #362
Draft
saymer-alt wants to merge 2 commits into
Draft
saymer-alt wants to merge 2 commits into
saymer-alt wants to merge 2 commits into
Conversation
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Scope — Issue #356 (test-only, no routing change)
Goal: lock down today's literal substring semantics for selected Exclude Filter node names, without silently switching to exact matching. Regex escaping protects metacharacters but does not add
^/$anchors.Files:
tests/exclude-filter-substring-356.cjs(Node, synthetic, no dependencies/network) and exactly one static+Node step in.github/workflows/generator-ci.yml. Noindex.html, engine, generated runtime, routing/YAML defaults, subscription requests,stable, Pages, VPS or router changes.Actual-code test seam: functions
buildCombinedExcludeFilter,splitManualExcludeFilter,escapeRegExpText,compileSubscriptionExcludeFilter,serverListExclusionBreakdownextracted directly from currentindex.htmland executed in an isolated Node VM. Synthetic fixtures:A,A-extra,provider: A,Hysteria 2 | Германия,A[1],A+B, for both Sub ON and Sub OFF JS filter contracts. Both manual-regex OR and preview overmatch/dedup accounting tested.AA(?:A)AA-extra(?:A)Aprovider: A(?:A)AB(?:A)Hysteria 2 | ГерманияA[1]A1A+BAAABEvidence scope: Sub ON is source contract + emulated JS regex of emitted filter, not a real Mihomo provider runtime; Sub OFF uses actual Builder compile function.
override.additional-prefixis confirmed present in generated engine source but the order of override vs exclude-filter in Mihomo 1.19.31/1.19.33 remains NOT TESTED. No claim of real provider exact-match behavior. #312 remains open.Start baseline:
main=f8f79ce052c5ddff7c3b1f7874fb9604077ac089. Draft only. No merge before owner GO. CI exact-head status to be updated after run.