demo/ui-bootstrap-tpls.0.11.2.js
function snake_case(name){
    var regexp = /[A-Z]/g;
    var separator = '-';
    return name.replace(regexp, function(letter, pos) {
      return (pos ? separator : '') + letter.toLowerCase();
    });
  }
function snake_case(name){
    var regexp = /[A-Z]/g;
    var separator = '-';
    return name.replace(regexp, function(letter, pos) {
      return (pos ? separator : '') + letter.toLowerCase();
    });
  }
function snake_case ( name ) { var regexp = / [A-Z] / g ; var separator = '-' ; return name . replace ( regexp , function ( letter , pos ) { return ( pos ? separator : '' ) + letter . toLowerCase ( ) ; } ) ; }
This is a helper function for translating camel-case to snake-case.
This is a helper function for translating camel - case to snake - case .