You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					10 lines
				
				362 B
			
		
		
			
		
	
	
					10 lines
				
				362 B
			| 
								 
											3 years ago
										 
									 | 
							
								/**
							 | 
						||
| 
								 | 
							
								 * Copyright 2013-2014, Facebook, Inc.
							 | 
						||
| 
								 | 
							
								 * All rights reserved.
							 | 
						||
| 
								 | 
							
								 * https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								import hyphenate from './hyphenate';
							 | 
						||
| 
								 | 
							
								var msPattern = /^ms-/;
							 | 
						||
| 
								 | 
							
								export default function hyphenateStyleName(string) {
							 | 
						||
| 
								 | 
							
								  return hyphenate(string).replace(msPattern, '-ms-');
							 | 
						||
| 
								 | 
							
								}
							 |