Родитель
101ee2a0c1
Коммит
e35f2aa897
|
@ -2,7 +2,7 @@
|
|||
"name": "azure-iot-edge",
|
||||
"displayName": "Azure IoT Edge",
|
||||
"description": "Develop, deploy, debug, and manage your IoT Edge solution",
|
||||
"version": "1.13.0-rc2",
|
||||
"version": "1.13.0-rc3",
|
||||
"publisher": "vsciot-vscode",
|
||||
"aiKey": "95b20d64-f54f-4de3-8ad5-165a75a6c6fe",
|
||||
"icon": "logo.png",
|
||||
|
|
|
@ -294,8 +294,9 @@ export class Utility {
|
|||
}
|
||||
}
|
||||
|
||||
// Remove the wrapping "${" and "}" of a image placeholder
|
||||
// Escape JSON string and remove the wrapping "${" and "}" of a image placeholder
|
||||
public static unwrapImagePlaceholder(imagePlaceholder: string): string {
|
||||
imagePlaceholder = JSON.stringify(imagePlaceholder).slice(1, -1);
|
||||
if (imagePlaceholder.search(Constants.imagePlaceholderPattern) === 0 && imagePlaceholder.endsWith("}")) {
|
||||
return imagePlaceholder.slice(2, -1);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче