Skip to content

Commit

Permalink
Improve the regular expression.
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-vlasenko authored and Anton Vlasenko committed Jan 30, 2024
1 parent 8249699 commit 0c8ef69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,10 @@
<include-pattern>./packages/block-library/src/*/*.php</include-pattern>
<properties>
<property name="forbidden_functions" type="array">
<element value="(G|g)utenberg.*"/>
<element value="[Gg]utenberg.*"/>
</property>
<property name="forbidden_classes" type="array">
<element value="(G|g)utenberg.*"/>
<element value="[Gg]utenberg.*"/>
</property>
</properties>
</rule>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,11 @@ public function setCliValues( $filename, $config ) {

$sniff = $current_ruleset->sniffs[ ForbiddenFunctionsAndClassesSniff::class ];
$sniff->forbidden_functions = array(
'(G|g)utenberg.*',
'[Gg]utenberg.*',
);

$sniff->forbidden_classes = array(
'(G|g)utenberg.*',
'[Gg]utenberg.*',
);
}
}

0 comments on commit 0c8ef69

Please sign in to comment.