Skip to content

support plugins with dots in their @scope #3687

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 1, 2024
Merged

Conversation

gtalusan
Copy link
Contributor

@gtalusan gtalusan commented Sep 1, 2024

♻️ Current situation

I'm writing a plugin and my npm @scope has a '.' in it. Homebridge won't load it.

💡 Proposed solution

Changing PLUGIN_IDENTIFIER_PATTERN to include a period in the regex.

⚙️ Release Notes

Support plugins with dots in their @scope

➕ Additional Information

N/A

Testing

Add corresponding tests to pluginManager.spec.ts.

Reviewer Nudging

@github-actions github-actions bot added the latest label Sep 1, 2024
@coveralls
Copy link

coveralls commented Sep 1, 2024

Pull Request Test Coverage Report for Build 10655096974

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 28.218%

Totals Coverage Status
Change from base Build 10040341925: 0.0%
Covered Lines: 427
Relevant Lines: 1367

💛 - Coveralls

@bwp91 bwp91 merged commit 59e0893 into homebridge:latest Sep 1, 2024
10 checks passed
@bwp91
Copy link
Contributor

bwp91 commented Sep 1, 2024

@gtalusan i have pushed your changes to both the alpha and beta versions of homebridge and the UI. maybe you have these running and could update and test that you can install your plugin correctly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants