replace non-word chars with -
This commit is contained in:
		
							parent
							
								
									1b4da6d9a0
								
							
						
					
					
						commit
						6f0833e1f4
					
				@ -115,9 +115,9 @@ function parseCertData(lines) {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function dumpCerts(certs, filename, pemsDir) {
 | 
			
		||||
  certs.forEach(function (cert, i) {
 | 
			
		||||
  certs.forEach(function (cert) {
 | 
			
		||||
    var pem = cert.quasiPEM()
 | 
			
		||||
      , pemName = pem.name.toLowerCase().replace(/\W/, '-').replace(/-+/, '-')
 | 
			
		||||
      , pemName = pem.name.toLowerCase().replace(/\W/g, '-').replace(/-+/g, '-')
 | 
			
		||||
      , pemsFile = path.join(pemsDir, pemName + '.pem')
 | 
			
		||||
      ;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user