remove spaces from end/beginning
This commit is contained in:
@@ -14,10 +14,16 @@ function PMA_transformation_getOptions($string) {
|
|||||||
if ($nextToken{0} == '\'') {
|
if ($nextToken{0} == '\'') {
|
||||||
$nextToken = $nextToken{strlen($nextToken) - 1} == '\'' ? substr($nextToken, 1, -1) : substr($nextToken, 1) . ' ' . strtok('\'');
|
$nextToken = $nextToken{strlen($nextToken) - 1} == '\'' ? substr($nextToken, 1, -1) : substr($nextToken, 1) . ' ' . strtok('\'');
|
||||||
$transform_options[] = $nextToken;
|
$transform_options[] = $nextToken;
|
||||||
|
} else {
|
||||||
|
$trimmed = trim($nextToken);
|
||||||
|
if ($trimmed{0} == '\'') {
|
||||||
|
$trimmed = $nextToken{strlen($nextToken) - 1} == '\'' ? substr($nextToken, 1, -1) : substr($nextToken, 1) . ' ' . strtok('\'');
|
||||||
|
$transform_options[] = $trimmed;
|
||||||
} else {
|
} else {
|
||||||
$transform_options[] = $nextToken;
|
$transform_options[] = $nextToken;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// strip possible slashes to behave like documentation says
|
// strip possible slashes to behave like documentation says
|
||||||
$result = array();
|
$result = array();
|
||||||
|
Reference in New Issue
Block a user