diff --git a/lib/trough/pig/hooks.rb b/lib/trough/pig/hooks.rb index fbfba82..6bde742 100644 --- a/lib/trough/pig/hooks.rb +++ b/lib/trough/pig/hooks.rb @@ -76,7 +76,7 @@ def determine_text_change(key, content_chunk) def find_documents(value) # Find all links to /documents/:slug and return the slugs return [] if value.nil? - value.scan(/href=\S*\/documents\/(\S+[^\\])\\?['"]/).flatten + value.scan(/href=\S*\/documents\/(\S+[^\\])\\?['"]>/).flatten end def unlink_document_usages