Created
          August 6, 2013 22:03 
        
      - 
      
- 
        Save shaneshifflett/6169154 to your computer and use it in GitHub Desktop. 
    slugify
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | var slugify = function(input){ | |
| return input | |
| .toLowerCase() | |
| .replace(/ /g,'-') | |
| .replace(/[^\w-]+/g,''); | |
| }; | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment