I need to remove double quotes for specific key value:
upload: {
name: "upload",
url: "/upload",
controller: "invoicesCtrl",
templateUrl: "./views/invoices.html",
resolve: "resolveUrl('./compiled/invoices_app.js')"
},
invoices: {
name: "invoices",
url: "/invoices",
controller: "invoicesCtrl",
templateUrl: "/invoices/views/invoices.html",
resolve: "resolveUrl('/invoices/app/js/compiled/invoices_app.js')"
}
Just for resolve key values, the others have to be strings. Is there any regular expression for this with the replace
function? The expected result:
upload: {
name: "upload",
url: "/upload",
controller: "invoicesCtrl",
templateUrl: "./views/invoices.html",
resolve: resolveUrl('./compiled/invoices_app.js')
},
invoices: {
name: "invoices",
url: "/invoices",
controller: "invoicesCtrl",
templateUrl: "/invoices/views/invoices.html",
resolve: resolveUrl('/invoices/app/js/compiled/invoices_app.js')
}