Created
September 1, 2009 09:11
-
-
Save alvin2ye/178998 to your computer and use it in GitHub Desktop.
remove_blank_line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function remove_blank_line(txt) { | |
return txt.replace(/^\s*\n/gm, ''); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment