AngularJS module to parse range selection strings from user input