resolves gh-91 to insure that int and floats are not set as strings in SQL defaults

This commit is contained in:
2017-06-05 21:18:32 +01:00
parent 5e36ede2ac
commit 3ad9ae8b8f
271 changed files with 485 additions and 474 deletions

View File

@ -706,7 +706,8 @@ abstract class ###Component###Helper
// If you don't need to handle multi-byte characters
// you can use preg_replace rather than mb_ereg_replace
// Thanks @Łukasz Rysiak!
$string = mb_ereg_replace("([^\w\s\d\-_\(\)])", '', $string);
// $string = mb_ereg_replace("([^\w\s\d\-_\(\)])", '', $string);
$string = preg_replace("([^\w\s\d\-_\(\)])", '', $string);
// http://stackoverflow.com/a/2021729/1429677
return preg_replace('/\s+/', ' ', $string);
}