@vscode/vsce 3.5.1-5 → 3.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/package.js +2 -1
- package/package.json +1 -1
package/out/package.js
CHANGED
|
@@ -135,11 +135,12 @@ function escapeRegExp(value) {
|
|
|
135
135
|
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
|
136
136
|
}
|
|
137
137
|
function sanitizeTag(tag) {
|
|
138
|
-
return tag.replace(/[^\w
|
|
138
|
+
return tag.replace(/[^\w.-]/g, '');
|
|
139
139
|
}
|
|
140
140
|
function toExtensionTags(extensions) {
|
|
141
141
|
return extensions
|
|
142
142
|
.map(sanitizeTag)
|
|
143
|
+
.map(s => s.replace('.', ''))
|
|
143
144
|
.filter(s => !!s)
|
|
144
145
|
.map(s => `__ext_${s}`);
|
|
145
146
|
}
|