fix: match A01 v3 visual reference

This commit is contained in:
rain
2026-07-13 14:47:28 +08:00
parent b1b635c6ae
commit 225c5272b6
6 changed files with 128 additions and 268 deletions
+11 -4
View File
@@ -23,10 +23,12 @@ foreach ($rule in $rules) {
}
$layoutRules = @(
(ConvertFrom-Utf8Base64 '5YaF5a655a695bqmIDYzOHJweA=='),
(ConvertFrom-Utf8Base64 '5Li75oyJ6ZKu6auY5bqmIDEwOHJweA=='),
(ConvertFrom-Utf8Base64 'ZW52KHNhZmUtYXJlYS1pbnNldC1ib3R0b20p'),
(ConvertFrom-Utf8Base64 '6LSm5Y+35a+G56CB55m75b2VIC8g5omL5py66aqM6K+B56CB55m75b2V')
(ConvertFrom-Utf8Base64 '5Zu65a6a6K6+6K6h55S75biD5Li6IGA3NTBycHhgIOWuvQ=='),
(ConvertFrom-Utf8Base64 'ODUyIMOXIDE4NDZweA=='),
(ConvertFrom-Utf8Base64 'NzUwIMOXIDE2MjVycHg='),
(ConvertFrom-Utf8Base64 '6L+Q6KGM5pe26KeG6KeJ5rqQ'),
(ConvertFrom-Utf8Base64 '5Li75oyJ6ZKu5paH5qGI5Zu65a6a5Li64oCc55m75b2V4oCd'),
(ConvertFrom-Utf8Base64 'b3ZlcmZsb3c6IGhpZGRlbg==')
)
foreach ($rule in $layoutRules) {
@@ -35,6 +37,11 @@ foreach ($rule in $layoutRules) {
}
}
$legacyLayoutRule = ConvertFrom-Utf8Base64 '5YaF5a655a695bqmIDYzOHJweA=='
if ($record -match [regex]::Escape($legacyLayoutRule)) {
throw "Legacy A01 layout rule remains: $legacyLayoutRule"
}
$currentStructure = [regex]::Match($record, '(?s)## 2\..*?(?=## 3\.)').Value
$currentStructureRule = ConvertFrom-Utf8Base64 '5Lik5Liq5aSn5oyJ6ZKu5ZKM5LiA5Liq5paH5a2X5YWl5Y+j'
if ($currentStructure -notmatch [regex]::Escape($currentStructureRule)) {