feature #144 - fixed an issue (stripping comments wasn't working)

This commit is contained in:
Yaniv Efraim 2015-02-11 22:04:54 +02:00
parent 3f8d10daaa
commit 57691e5cb6
4 changed files with 4 additions and 6 deletions

View File

@ -1481,8 +1481,7 @@ return /******/ (function(modules) { // webpackBootstrap
return $1 + '"' + $2 + '"' + $3;
});
jsonString.replace(/\*(.|[\r\n])*?\*/g,'');//Remove all code comments
jsonString = jsonString.replace(/\/\*(.|[\r\n])*?\*\//g,'');//Remove all code comments
//If JSON starts with a function (Carachters/digist/"_-"), remove this function.
//This is usefull for "stripping" JSONP objects to become JSON

File diff suppressed because one or more lines are too long

2
jsoneditor.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -71,8 +71,7 @@ define(function () {
return $1 + '"' + $2 + '"' + $3;
});
jsonString.replace(/\*(.|[\r\n])*?\*/g,'');//Remove all code comments
jsonString = jsonString.replace(/\/\*(.|[\r\n])*?\*\//g,'');//Remove all code comments
//If JSON starts with a function (Carachters/digist/"_-"), remove this function.
//This is usefull for "stripping" JSONP objects to become JSON