@@ -9,6 +9,10 @@ describe("PluginManager", () => {
99 it ( "should match scoped plugin names" , ( ) => {
1010 expect ( PluginManager . isQualifiedPluginIdentifier ( "@organisation/homebridge-dummy-plugin" ) ) . toBeTruthy ( ) ;
1111 } ) ;
12+
13+ it ( "should match scoped plugin names with dots" , ( ) => {
14+ expect ( PluginManager . isQualifiedPluginIdentifier ( "@organisation.com/homebridge-dummy-plugin" ) ) . toBeTruthy ( ) ;
15+ } ) ;
1216 } ) ;
1317
1418 describe ( "PluginManager.extractPluginName" , ( ) => {
@@ -19,6 +23,10 @@ describe("PluginManager", () => {
1923 it ( "should extract scoped plugin names" , function ( ) {
2024 expect ( PluginManager . extractPluginName ( "@organisation/homebridge-dummy-plugin" ) ) . toBe ( "homebridge-dummy-plugin" ) ;
2125 } ) ;
26+
27+ it ( "should extract scoped plugin names with scopes with dots in their name" , function ( ) {
28+ expect ( PluginManager . extractPluginName ( "@organisation.com/homebridge-dummy-plugin" ) ) . toBe ( "homebridge-dummy-plugin" ) ;
29+ } ) ;
2230 } ) ;
2331
2432 describe ( "PluginManager.extractPluginScope" , ( ) => {
@@ -29,6 +37,10 @@ describe("PluginManager", () => {
2937 it ( "should extract scope for scoped plugin names" , function ( ) {
3038 expect ( PluginManager . extractPluginScope ( "@organisation/homebridge-dummy-plugin" ) ) . toBe ( "@organisation" ) ;
3139 } ) ;
40+
41+ it ( "should extract scope for scoped plugin names with dots in their name" , function ( ) {
42+ expect ( PluginManager . extractPluginScope ( "@organisation.com/homebridge-dummy-plugin" ) ) . toBe ( "@organisation.com" ) ;
43+ } ) ;
3244 } ) ;
3345
3446 describe ( "...Name" , ( ) => {
0 commit comments