fix for bug in regex parsing for dsn; fixes #6