We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 893f8ac + 890a0a5 commit 51a3d31Copy full SHA for 51a3d31
2 files changed
package.json
@@ -3,7 +3,7 @@
3
"displayName": "MapLibre",
4
"description": "",
5
"publisher": "kiguchi",
6
- "version": "0.2.0",
+ "version": "0.2.1",
7
"engines": {
8
"vscode": "^1.92.0"
9
},
src/panels/layerEditor.html
@@ -283,7 +283,8 @@
283
if (!color) return '#000000';
284
if (color.startsWith('#')) return color;
285
if (color.startsWith('rgb')) {
286
- const match = color.match(/rgb\((\d+),\s*(\d+),\s*(\d+)\)/);
+ // Handle both rgb() and rgba()
287
+ const match = color.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);
288
if (match) {
289
const r = parseInt(match[1]).toString(16).padStart(2, '0');
290
const g = parseInt(match[2]).toString(16).padStart(2, '0');
0 commit comments