* fix bad routing regex for docs & blogs * extract to routing.js & add test * add more test case * address code review * prettier