Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function multiline(s){return s.toString().replace(/\r/g,"##R##").replace(/\n/g,"##N##").replace(/^.*\/\*\+(.*)\+\*\/.*$/, "$1").replace(/##R##/g,"\r").replace(/##N##/g,"\n");}
@eladkarako

This comment has been minimized.

Copy link
Owner Author

commented Apr 15, 2019

use like so:

var SRC = multiline(function(){/*+
hello
in
  multilines
+*/});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.