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. .gitignore
  2. LICENSE
  3. include/
  4. priv/
  5. rebar.config.script
  6. src/
  7. test/