Can anyone help me with finding the correct regex to match a path like '/@someusername' with angular ui router? I've been struggling to figure it out.
Currently, my routes look like this
$stateProvider
.state('home', {url:'/', templateUrl:'/template/path.html'})
.state('author', {url:'/{username:[regex-to-match-@username-here]}'})
.state('info', {url:'/:slug', templateUrl:'/template/path.html'})
.state('entry', {url:'/:type/:slug', templateUrl:'/template/path.html'});
I'm in need of a regex solution for the 'author' route that will properly match @usernames, as everything I attempt gets caught by the 'entry' route.