We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a7bb2e commit c66408bCopy full SHA for c66408b
src/OrderByAnalyzer.php
@@ -131,7 +131,7 @@ private function analyzeOrderByNoCache(string $orderBy) : array
131
*/
132
private function trimDirection(string $sql) : string
133
{
134
- preg_match('/^(.*)(\s+(DESC|ASC|))*$/Ui', $sql, $matches);
+ preg_match('/^((.|\n)*)(\s+(DESC|ASC))?$/Ui', $sql, $matches);
135
136
return $matches[1];
137
}
0 commit comments