Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the matching of the youtube shortcode reversal again.
Merges r184358-wpcom In D17568-code and D17868-code we improved this code. Those changes accidentally got reversed in D18511-code I was reviewing #10224 which would merge the original changes into Jetpack and noted the 's' modifier. Unfortunately we can't include that here because it means on long but malformed post content we go into an infinite loop because of the .*? in the RegEx. This means we can't match objects/mangled objects which have a newline within them but we can match more that we were Diff: D21652-code
- Loading branch information
e4c966d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll have to try this out, but I'm wondering if we need to escape the literal
.
characters, i.e.www\.youtube\.com/v/