diff --git a/Project.toml b/Project.toml index 4477d53..7c13012 100755 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "FranklinTemplates" uuid = "3a985190-f512-4703-8d38-2a7944ed5916" authors = ["Thibaut Lienart "] -version = "0.10.0" +version = "0.10.1" [deps] LiveServer = "16fef848-5104-11e9-1b77-fb7a48bbb589" diff --git a/src/utils.jl b/src/utils.jl index a65a05e..e89a710 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -207,7 +207,16 @@ function filecmp(path1::AbstractString, path2::AbstractString) if !(isfile(stat1) && isfile(stat2)) || filesize(stat1) != filesize(stat2) return false end - stat1 == stat2 && return true # same file + + compare_buffers(b1, b2, n) = begin + if VERSION > v"1.9" + Base.cmp(b1, b2) + else + Base._memcmp(b1, b2, n) + end + end + + stat1 == stat2 && return true # same fileq open(path1, "r") do file1 open(path2, "r") do file2 buf1 = Vector{UInt8}(undef, 32768)