Created
December 12, 2018 15:23
-
-
Save DanyelMorales/1cd548ca4f322f39f696e5e421cab426 to your computer and use it in GitHub Desktop.
replace spaces for line endings
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
var apiData = JSON.stringify(blocks, null, 2); | |
apiData = apiData.replace(/(\r\n|\n|\r)/g, app.options.lineEnding); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment