From 2d04f8dd4093b19bad8a027c12f7e4cb7192cf3a Mon Sep 17 00:00:00 2001 From: tlienart Date: Wed, 13 Sep 2023 09:26:35 +0200 Subject: [PATCH] closes https://github.com/tlienart/Franklin.jl/issues/1053 --- Project.toml | 2 +- src/utils.jl | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Project.toml b/Project.toml index 4477d530..7c13012f 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 a65a05e1..e89a7105 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)