Skip to content

Commit

Permalink
adjust field pattern, #60
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkez committed Feb 22, 2018
1 parent ec77dd9 commit 3f95972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/db/cortex.php
Original file line number Diff line number Diff line change
Expand Up @@ -2625,7 +2625,7 @@ public function prepareOptions($options, $engine, $db) {
if (array_key_exists('order', $options) &&
FALSE===strpos($options['order'],$char))
$options['order']=preg_replace_callback(
'/(\w+\h?\(|(?:DESC|ASC)(?:\s+\w+)*)|(\b\d?\w(?:[\w\-.]+))/i',
'/(\w+\h?\(|(?:DESC|ASC)(?:\s+\w+)*)|(\b\d?[a-zA-Z_](?:[\w\-.])*)/i',
function($match) use($db) {
if (!isset($match[2]))
return $match[1];
Expand Down

0 comments on commit 3f95972

Please sign in to comment.