Add pattern to file chooser for ssb urls (#103)

* add pattern to chooser to match ssb:// urls
* also gitignore ipfs bundle
This commit is contained in:
av8ta
2022-06-15 11:42:50 -07:00
committed by GitHub
parent e1e2087578
commit 9e75593429
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -11,3 +11,5 @@ coverage/
_site/ _site/
dist/ dist/
plugins-*/ plugins-*/
ipfs-core.min.js
+1 -1
View File
@@ -194,7 +194,7 @@ class Chooser extends LitElement
<p class="control is-expanded"> <p class="control is-expanded">
<input class="file-name input" type="text" <input class="file-name input" type="text"
name="filename" id="filename" name="filename" id="filename"
pattern="((file|http|https|ipfs|s3):\/\/.*\.(warc|warc.gz|zip|wacz|har|wbn|json))|(googledrive:\/\/.+)" pattern="((file|http|https|ipfs|s3):\/\/.*\.(warc|warc.gz|zip|wacz|har|wbn|json))|(googledrive:\/\/.+)|(ssb:\/\/.+)"
.value="${this.fileDisplayName}" .value="${this.fileDisplayName}"
@input="${this.onInput}" @input="${this.onInput}"
autocomplete="off" autocomplete="off"