Skip to content

Georgin01/Comment-strip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Comment-strip

A simple function to delete comments using regular expressions.

What does it do? Removes comments of any kind.

/* 
	this is 
	multi-line 
	comment 
*/
//this is simple comment

But do not touch the comments of this type

`//this isn`t a comment`
alert("//this is also not a /*comment*/");
console.log('/*still not a coment*/');

I would be happy to receive feedback. Maybe someone will figure out how to simplify or improve the function.

About

A simple function to delete comments using regular expressions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published