We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a4b3ec commit a875a3aCopy full SHA for a875a3a
Rakefile
@@ -4,8 +4,8 @@ namespace :appcache do
4
desc "update the date in the appcache file (in the gh-pages branch)"
5
task :update do
6
appcache = File.read("cache.appcache")
7
- updated = "# Updated: #{DateTime.now}\n"
+ updated = "# Updated: #{DateTime.now}"
8
9
- File.write("cache.appcache", appcache.sub(/\A(#.*$\n)?/, updated))
+ File.write("cache.appcache", appcache.sub(/^# Updated:.*$/, updated))
10
end
11
0 commit comments