Skip to content

Commit

Permalink
FEAT: registering .epub extension into ZIP codec (so it's possible to…
Browse files Browse the repository at this point in the history
… load epub files)
  • Loading branch information
Oldes committed Mar 28, 2019
1 parent 514e8e7 commit 3770d72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mezz/codec-zip.r
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ REBOL [
register-codec [
name: 'ZIP
title: "ZIP File Format"
suffixes: [%.zip %.aar %.jar %.apk %.zipx %.appx]
suffixes: [%.zip %.aar %.jar %.apk %.zipx %.appx %.epub]

decode: wrap [
;- privates
Expand Down Expand Up @@ -213,7 +213,7 @@ register-codec [
if verbose > 1 [sys/log/more 'ZIP ["Unknown ZIP signature:" mold skip to-binary type 4]]
]
]
new-line/skip result true 4
new-line/all result true
result
][
; external `decode` variables
Expand Down

0 comments on commit 3770d72

Please sign in to comment.