updating regex rules to always ensure trailing slashes are captured in routes