Skip to content

Commit

Permalink
Add support for React JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
ulken committed Dec 2, 2020
1 parent 29b2fd9 commit e0bccea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Converter.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ protected function searchAndReplace($search, $replace): void
$replace = $callableReplace();
}

$regexStart = !$this->isCssClassesOnly ? '(?<start>class\s*=\s*(?<quotation>["\'])((?!\k<quotation>).)*)' : '(?<start>\s*)';
$regexStart = !$this->isCssClassesOnly ? '(?<start>class(?:Name)?\s*=\s*(?<quotation>["\'])((?!\k<quotation>).)*)' : '(?<start>\s*)';
$regexEnd = !$this->isCssClassesOnly ? '(?<end>((?!\k<quotation>).)*\k<quotation>)' : '(?<end>\s*)';

$search = preg_quote($search);
Expand Down

0 comments on commit e0bccea

Please sign in to comment.