drush-ops/drush — pull request #70 by scipiojr (2013-09-09 16:53:24+00:00)
Title: Split table list returned by _drush_sql_get_db_table_list() correctly when on windows (installer)

Exploding the newline-seperated string of table names only on newline characters (\n) leaves all corresponding carriage return (\r) chars behind, thus confusing all checks performed directly on the array, such as those done by in_array. As e.g "sessions" != "sessions\r", $skip_tables oder $structure_tables will only contain the respective setting's last element. This patch replaces explode by preg_split and uses an os-independent regex.