@ckeditor/ckeditor5-dev-utils
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -24,3 +24,3 @@ /** | ||
parseRepositoryUrl( url ) { | ||
const regexp = /^((?:git@|(?:http[s]?|git):\/\/)github\.com(?:\/|:))?(([\w-]+)\/([\w-]+(?:\.git)?))(?:#([\w-\/]+))?$/; | ||
const regexp = /^((?:git@|(?:http[s]?|git):\/\/)github\.com(?:\/|:))?(([\w-]+)\/([\w-]+(?:\.git)?))(?:#([\w-\/\.]+))?$/; | ||
const match = url.match( regexp ); | ||
@@ -27,0 +27,0 @@ let server; |
{ | ||
"name": "@ckeditor/ckeditor5-dev-utils", | ||
"version": "2.3.2", | ||
"version": "2.3.3", | ||
"description": "Utils for CKEditor 5 development tools packages.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
@@ -127,2 +127,12 @@ /** | ||
} ); | ||
it( 'should parse short GitHub URL with provided tag', () => { | ||
const urlInfo = git.parseRepositoryUrl( 'ckeditor/ckeditor5-core#v1.0.0' ); | ||
expect( urlInfo.server ).to.equal( 'git@github.com:' ); | ||
expect( urlInfo.repository ).to.equal( 'ckeditor/ckeditor5-core' ); | ||
expect( urlInfo.user ).to.equal( 'ckeditor' ); | ||
expect( urlInfo.name ).to.equal( 'ckeditor5-core' ); | ||
expect( urlInfo.branch ).to.equal( 'v1.0.0' ); | ||
} ); | ||
} ); | ||
@@ -129,0 +139,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
74785
1866