{"action":"created","issue":{"url":"https://api.github.com/repos/pubkey/rxdb/issues/720","repository_url":"https://api.github.com/repos/pubkey/rxdb","labels_url":"https://api.github.com/repos/pubkey/rxdb/issues/720/labels{/name}","comments_url":"https://api.github.com/repos/pubkey/rxdb/issues/720/comments","events_url":"https://api.github.com/repos/pubkey/rxdb/issues/720/events","html_url":"https://github.com/pubkey/rxdb/issues/720","id":343347039,"node_id":"MDU6SXNzdWUzNDMzNDcwMzk=","number":720,"title":"Collection name validation is too strict","user":{"login":"errorx666","id":1048542,"node_id":"MDQ6VXNlcjEwNDg1NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/1048542?v=4","gravatar_id":"","url":"https://api.github.com/users/errorx666","html_url":"https://github.com/errorx666","followers_url":"https://api.github.com/users/errorx666/followers","following_url":"https://api.github.com/users/errorx666/following{/other_user}","gists_url":"https://api.github.com/users/errorx666/gists{/gist_id}","starred_url":"https://api.github.com/users/errorx666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errorx666/subscriptions","organizations_url":"https://api.github.com/users/errorx666/orgs","repos_url":"https://api.github.com/users/errorx666/repos","events_url":"https://api.github.com/users/errorx666/events{/privacy}","received_events_url":"https://api.github.com/users/errorx666/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-21T18:42:52Z","updated_at":"2018-07-21T20:21:54Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n  !!!\r\n  REMOVE EVERYTHING WRITTEN IN UPPERCASE BEFORE YOU CLICK SUBMIT\r\n  !!!\r\n-->\r\n\r\n<!-- IMPORTANT:\r\n  If you have a common question which cannot be solved with a PR, ask it here https://gitter.im/pubkey/rxdb\r\n-->\r\n\r\n<!-- DID YOU KNOW?\r\n  Over 50% of our bug-issues are not bugs.\r\n  When you reproduce the bug in our bug-template\r\n  you do not have to wait for the maintainers answer\r\n  and very likely solve your problem in the next 15 minutes.\r\n  https://github.com/pubkey/rxdb/blob/master/test/unit/bug-report.test.js\r\n-->\r\n\r\n## Case\r\n<!-- IS IT A BUG OR A REQUEST FOR A NEW FEATURE OR SOMETHING ELSE? -->\r\nBug\r\n\r\n\r\n## Issue\r\nThe regular expression here:\r\n\r\nhttps://github.com/pubkey/rxdb/blob/41cb52e490194deda2f8da1cc2e6aafc5708002b/src/util.js#L194\r\n\r\nThe link here:\r\nhttps://github.com/pubkey/rxdb/blob/41cb52e490194deda2f8da1cc2e6aafc5708002b/src/util.js#L171\r\n\r\nIs 404 Not Found, but an older version of it says:\r\n\r\n> A database must be named with all lowercase letters (a-z), digits (0-9), or any of the ''_$()+-/'' characters and must end with a slash in the URL. The name has to start with a lowercase letter (a-z).\r\n\r\n\r\nThis suggests that a more accurate regex would be `^[a-z][_$a-z0-9]*$` (excluding `()+-/` because they are not valid in JavaScript identifiers)."},"comment":{"url":"https://api.github.com/repos/pubkey/rxdb/issues/comments/406821320","html_url":"https://github.com/pubkey/rxdb/issues/720#issuecomment-406821320","issue_url":"https://api.github.com/repos/pubkey/rxdb/issues/720","id":406821320,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjgyMTMyMA==","user":{"login":"errorx666","id":1048542,"node_id":"MDQ6VXNlcjEwNDg1NDI=","avatar_url":"https://avatars3.githubusercontent.com/u/1048542?v=4","gravatar_id":"","url":"https://api.github.com/users/errorx666","html_url":"https://github.com/errorx666","followers_url":"https://api.github.com/users/errorx666/followers","following_url":"https://api.github.com/users/errorx666/following{/other_user}","gists_url":"https://api.github.com/users/errorx666/gists{/gist_id}","starred_url":"https://api.github.com/users/errorx666/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/errorx666/subscriptions","organizations_url":"https://api.github.com/users/errorx666/orgs","repos_url":"https://api.github.com/users/errorx666/repos","events_url":"https://api.github.com/users/errorx666/events{/privacy}","received_events_url":"https://api.github.com/users/errorx666/received_events","type":"User","site_admin":false},"created_at":"2018-07-21T20:21:54Z","updated_at":"2018-07-21T20:21:54Z","author_association":"NONE","body":"If you don't want to allow $ and _ in the terminal position because it's reserved, I can amend the regex in my PR for that.\r\nI really just want an underscore in the middle of a name."}}
{"actor":{"display_login":"errorx666"}}