Skip to content

Commit a875a3a

Browse files
match and replace the "Updated" comment
1 parent 6a4b3ec commit a875a3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ namespace :appcache do
44
desc "update the date in the appcache file (in the gh-pages branch)"
55
task :update do
66
appcache = File.read("cache.appcache")
7-
updated = "# Updated: #{DateTime.now}\n"
7+
updated = "# Updated: #{DateTime.now}"
88

9-
File.write("cache.appcache", appcache.sub(/\A(#.*$\n)?/, updated))
9+
File.write("cache.appcache", appcache.sub(/^# Updated:.*$/, updated))
1010
end
1111
end

0 commit comments

Comments
 (0)