Automattic/jetpack — pull request #1048 by scotchfield (2014-08-27 15:50:38+00:00)
Title: Unit tests for media extractor and summary, with small bug fixes.

On a bit of a unit-testing kick to get comfortable with the Jetpack code, I hope this is fine! Found a couple of small issues in the media classes.

***

Using strpos for substring find for (small) efficiency bump.

Modified get_link_count in class.media-summary.php to prevent matches
of unrelated tags (abbr, address, and other relatively-unused but
still valid tags).