修改完成
This commit is contained in:
@@ -7,7 +7,7 @@ function Assert-Contains {
|
||||
|
||||
function Assert-NoCssSurface {
|
||||
param([string]$Content, [string]$ClassName)
|
||||
foreach ($property in @('border', 'background', 'border-radius')) {
|
||||
foreach ($property in @('border', 'border-radius')) {
|
||||
$pattern = "(?s)\\.$ClassName\\s*\\{[^}]*\\b$property\\s*:"
|
||||
if ($Content -match $pattern) { throw "G03 must not construct .$ClassName with CSS $property" }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user