1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 13:47:33 +02:00

DibiFluent: clause() argument can be in upper-case

This commit is contained in:
David Grudl
2010-01-24 18:58:05 +01:00
parent 65965b0943
commit e232bf470c

View File

@@ -449,7 +449,7 @@ class DibiFluent extends DibiObject implements IDataSource
$s .= 'By';
trigger_error("Did you mean '$s'?", E_USER_NOTICE);
}
return strtoupper(preg_replace('#[A-Z]#', ' $0', $s));
return strtoupper(preg_replace('#[a-z](?=[A-Z])#', '$0 ', $s));
}