diff --git a/undo.rb b/undo.rb index cbbf8c1..6f1efdf 100755 --- a/undo.rb +++ b/undo.rb @@ -21,7 +21,7 @@ config["sites"].each do |site| next end page_text = wiki.get_text(page['title']) - if page_text.match('') + if page_text.match('!DOCTYPE html') rollback(wiki, page['title']) end end