Permalink
Browse files

Include newlines in snippet body regex.

  • Loading branch information...
1 parent baa517b commit 5c285cd691a6a87392236d2a8aad09849cd8e1e5 @Osmose Osmose committed Nov 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 site_media/snippetBodyWidget.js
@@ -92,7 +92,7 @@ SnippetBodyWidget = function($) {
elems.icon_url.val(snippet.icon.url);
}
- var text_matches = snippet_code.match(/<p>(.+)<\/p>/);
+ var text_matches = snippet_code.match(/<p>([\s\S]*)<\/p>/);
if (text_matches !== null) {
snippet.text = text_matches[1];
elems.text.val(link2wiki(text_matches[1]));

0 comments on commit 5c285cd

Please sign in to comment.