Introduce couch_db:normalize_dbname

Move duplicated logic into couch_db:normalize_dbname. We could use this
helper function anywhere we need to extract dbname from shard path.

COUCHDB-2715
2 files changed
tree: 98142343d7c5a63c82c88f569db8b360cc47168c
  1. include/
  2. priv/
  3. src/
  4. test/
  5. .gitignore
  6. LICENSE
  7. rebar.config.script