Skip to content

Commit 6a7a91b

Browse files
committed
fix useless regex escape
1 parent 8065690 commit 6a7a91b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/platform/extensionManagement/common/extensionGalleryService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ function getCoreTranslationAssets(version: IRawGalleryExtensionVersion): [string
217217
function getRepositoryAsset(version: IRawGalleryExtensionVersion): IGalleryExtensionAsset | null {
218218
if (version.properties) {
219219
const results = version.properties.filter(p => p.key === AssetType.Repository);
220-
const gitRegExp = new RegExp('((git|ssh|http(s)?)|(git@[\w\.]+))(:(//)?)([\w\.@\:/\-~]+)(\.git)(/)?');
220+
const gitRegExp = new RegExp('((git|ssh|http(s)?)|(git@[\w.]+))(:(//)?)([\w.@\:/\-~]+)(.git)(/)?');
221221

222222
const uri = results.filter(r => gitRegExp.test(r.value))[0];
223223
return uri ? { uri: uri.value, fallbackUri: uri.value } : null;

0 commit comments

Comments
 (0)