Skip to content

Commit

Permalink
fix(normalizer): expr maybe lowercased
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Oct 20, 2021
1 parent 34250c8 commit e6c11df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Normalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public function normalizeExpr(string $expr): string
{
$expr = \trim($expr);

if (isset(static::$expressions[$expr])) {
return static::$expressions[$expr];
if (isset(static::$expressions[$exp = \strtolower($expr)])) {
return static::$expressions[$exp];
}

$expr = \preg_replace('~\s+~', ' ', $expr);
Expand Down

0 comments on commit e6c11df

Please sign in to comment.