diff --git a/Rakefile b/Rakefile index 673b2733b70aaaf917128eda375b19865206356e..3e9851e615287000021e6e09e7a2d729c021639f 100644 --- a/Rakefile +++ b/Rakefile @@ -4,8 +4,8 @@ namespace :appcache do desc "update the date in the appcache file (in the gh-pages branch)" task :update do appcache = File.read("cache.appcache") - updated = "# Updated: #{DateTime.now}\n" + updated = "# Updated: #{DateTime.now}" - File.write("cache.appcache", appcache.sub(/\A(#.*$\n)?/, updated)) + File.write("cache.appcache", appcache.sub(/^# Updated:.*$/, updated)) end end