feature #144 - fixed an issue (stripping comments wasn't working)
This commit is contained in:
parent
3f8d10daaa
commit
57691e5cb6
|
@ -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
File diff suppressed because one or more lines are too long
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue