This is to tidy up the `author-packagse`, which currently duplicates a lot of the configuration in the main packages. We need to DRY this up so that we don't fall foul of a change in one being missed in the other.
		
			
				
	
	
		
			6 lines
		
	
	
		
			153 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			153 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| module.exports = function toId() {
 | |
|   return {
 | |
|     name: 'toId',
 | |
|     process: function(str) { return str.replace(/[^(a-z)(A-Z)(0-9)._-]/g, '-'); }
 | |
|   };
 | |
| }; |