github.com/outbrain/consul@v1.4.5/ui-v2/app/helpers/slugify.js (about)

     1  import { helper } from '@ember/component/helper';
     2  
     3  // TODO: Currently I'm only using this for hardcoded values
     4  // so ' ' to '-' replacement is sufficient for the moment
     5  export function slugify([str = ''], hash) {
     6    return str.replace(/ /g, '-').toLowerCase();
     7  }
     8  
     9  export default helper(slugify);