Skip to content

Commit

Permalink
isssue #447 (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
adashen authored May 22, 2019
1 parent 101ee2a commit e35f2aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/common/utility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e35f2aa

Please sign in to comment.