Skip to content

Commit 76e3404

Browse files
committed
remove newline check from Rdata
1 parent c2b2127 commit 76e3404

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/registry.jl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ function detect_rdata(io)
88
seekstart(io)
99
read(io, UInt8) == UInt8('R') &&
1010
read(io, UInt8) == UInt8('D') &&
11-
(fmt = read(io, UInt8); fmt == UInt8('A') || fmt == UInt8('B') || fmt == UInt8('X')) &&
12-
read(io, UInt8) == UInt8('2') &&
13-
read(io, UInt8) == 0x0A
11+
read(io, UInt8) in (UInt8('A'), UInt8('B'), UInt8('X')) &&
12+
read(io, UInt8) == UInt8('2')
1413
end
1514

1615
add_format(format"RData", detect_rdata, [".rda", ".RData", ".rdata"], [:RData, LOAD])

0 commit comments

Comments
 (0)