[gtk-doc] Anchor the regex for urls to the beginning of the line



commit cc08398bccd4a52460cef87aa32c5d39f79f77ff
Author: William Jon McCann <william jon mccann gmail com>
Date:   Wed Feb 5 15:32:41 2014 -0500

    Anchor the regex for urls to the beginning of the line

 gtkdoc-mkdb.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 170a164..35a8cf5 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4947,7 +4947,7 @@ sub MarkDownParseSpanElementsInner {
         }
 
         $remaining_text = substr ($text, $offset);
-        if ($remaining_text =~ /\([ ]*([^)'"]*?)(?:[ ]+['"](.+?)['"])?[ ]*\)/) {
+        if ($remaining_text =~ /^\([ ]*([^)'"]*?)(?:[ ]+['"](.+?)['"])?[ ]*\)/) {
           $element{"ยป"} = $1;
           if (defined ($2)) {
             $element{"#"} = $2;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]