fix(curriculum): helper function regex s flag causing error (#41910)
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
import { parse } from '@babel/parser';
 | 
			
		||||
import generate from '@babel/generator';
 | 
			
		||||
 | 
			
		||||
const removeHtmlComments = str => str.replace(/<!--.*?-->/gs, '');
 | 
			
		||||
const removeHtmlComments = str => str.replace(/<!--[\s\S]*?(-->|$)/g, '');
 | 
			
		||||
 | 
			
		||||
const removeCssComments = str => str.replace(/\/\*[\s\S]+?\*\//g, '');
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user