Skip to content

Commit

Permalink
Correctly match link in multipart/alternative messages
Browse files Browse the repository at this point in the history
  • Loading branch information
catphish committed Mar 13, 2023
1 parent 2e82dee commit 7ea00df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/lib/postal/message_parser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
track_domain = create(:track_domain, :server => server, :domain => message.domain)
parser = Postal::MessageParser.new(message)
expect(parser.actioned?).to be true
expect(parser.new_body).to match(/\AHello world! https:\/\/click\.#{message.domain.name}/)
expect(parser.new_body).to match(/^Hello world! https:\/\/click\.#{message.domain.name}/)
expect(parser.tracked_links).to eq 1
end
end
Expand Down

0 comments on commit 7ea00df

Please sign in to comment.