Skip to content

Commit

Permalink
Merge pull request #1 from Yoomee/bug/titles-with-apostrophes
Browse files Browse the repository at this point in the history
Alter regex to allow apostrophes in document titles
  • Loading branch information
ShadowKoBolt authored Jun 13, 2016
2 parents f9f6bfd + e2e30f6 commit b2dd8b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/trough/pig/hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2dd8b2

Please sign in to comment.