Skip to content

Commit 3fd4d4b

Browse files
committed
Allow extensions to suite plugins. Fixes jquery-archive#28 - Plugin Naming for Extensions.
1 parent 572e91a commit 3fd4d4b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/service.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ extend( Repo.prototype, {
7575
} else {
7676
Object.keys( suites ).forEach(function( repoId ) {
7777
var prefix = suites[ repoId ];
78-
if ( package.name.indexOf( prefix ) === 0 ) {
78+
if ( package.name.indexOf( prefix ) === 0 &&
79+
!(/\./).test( package.name.substr( prefix.length ) ) ) {
7980
errors.push( "Name must not start with '" + prefix + "'." );
8081
}
8182
});

0 commit comments

Comments
 (0)