Skip to content

Commit

Permalink
fix: Allow CDX file loading (#394)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shrinks99 authored Jan 20, 2025
2 parents 6f495c9 + bbce684 commit 50ac4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chooser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,13 +295,13 @@ export class Chooser extends LitElement {
type="text"
name="filename"
id="filename"
pattern="((file|http|https|ipfs|s3)://.*.(warc|warc.gz|zip|wacz|har|json)([?#].*)?)|(googledrive://.+)|(ssb://.+)"
pattern="((file|http|https|ipfs|s3)://.*.(warc|warc.gz|zip|wacz|har|json|cdx|cdxj)([?#].*)?)|(googledrive://.+)|(ssb://.+)"
.value="${this.fileDisplayName}"
@input="${this.onInput}"
autocomplete="off"
placeholder="${this.newFullImport
? "Click 'Choose File' to select a local archive to import"
: "Enter a URL or click 'Choose File' to select a WARC, WACZ, or HAR file"}"
: "Enter a URL or click 'Choose File' to select a WARC, WACZ, CDX, or HAR file"}"
/>
</p>
<div class="control">
Expand Down

0 comments on commit 50ac4e4

Please sign in to comment.