# プライベートリポジトリからのテーマコンポーネントインストール時に公開鍵が表示されない

**URL:** <https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051>\
**Category:** Bug\
**Created:** [2022 年 8 月 24 日午後 12:53 UTC](https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051 "2022-08-24T12:53:07Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)\
**Post date:** [2022 年 8 月 25 日午後 9:30 UTC](https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051/6 "2022-08-25T21:30:53Z")

</div>

ここでの問題は、リポジトリURLをチェックする正規表現が厳しすぎ、末尾の`.git`が欠落していることを許可していなかったことでした。このPRで修正しました。

> <https://github.com/discourse/discourse/pull/18092>
>
> When installing private themes and theme components, the public key does
> not sh…ow until the administrator types a valid Git repo URL. The regular
> expression that checked the URL was too strict and it required the URL
> to end with ".git".

---

_[View the full topic](https://meta.discourse.org/t/public-key-not-displayed-on-theme-component-install-from-private-repository/237051)._
