Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- updated regex pattern

  • Loading branch information...
commit a0a4ce86216627614e4db215fa377f2ad99274b0 1 parent 9c9c7a9
@n1crack n1crack authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  application/libraries/Datatables.php
View
2  application/libraries/Datatables.php
@@ -45,7 +45,7 @@ public function __construct()
public function select($columns, $backtick_protect = TRUE)
{
foreach(explode(',', $columns) as $key => $val)
- $this->columns[] = trim(preg_replace('/(\w*)\s+[aA][sS]\s+(\w*)/', '$2', $val));
+ $this->columns[] = trim(preg_replace('/(\w*)\s+as\s+(\w*)/i', '$2', $val));
$this->ci->db->select($columns, $backtick_protect);
return $this;
Please sign in to comment.
Something went wrong with that request. Please try again.