Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-02-10 13:12:36


Author: danieljames
Date: 2008-02-10 13:12:35 EST (Sun, 10 Feb 2008)
New Revision: 43215
URL: http://svn.boost.org/trac/boost/changeset/43215

Log:
Check for links in single quotes as well as double quotes.
Text files modified:
   branches/fix-links/tools/inspect/link_check.cpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: branches/fix-links/tools/inspect/link_check.cpp
==============================================================================
--- branches/fix-links/tools/inspect/link_check.cpp (original)
+++ branches/fix-links/tools/inspect/link_check.cpp 2008-02-10 13:12:35 EST (Sun, 10 Feb 2008)
@@ -16,7 +16,7 @@
 {
   boost::regex url_regex(
     "<\\s*[^>]*\\s+(?:HREF|SRC)" // HREF or SRC
- "\\s*=\\s*\"([^\"]*)\"",
+ "\\s*=\\s*(['\"])(.*?)\\1",
     boost::regbase::normal | boost::regbase::icase);
 
 } // unnamed namespace
@@ -66,8 +66,8 @@
       while( boost::regex_search( start, end, what, url_regex, flags) )
       {
         // what[0] contains the whole string iterators.
- // what[1] contains the URL iterators.
- do_url( string( what[1].first, what[1].second ),
+ // what[2] contains the URL iterators.
+ do_url( string( what[2].first, what[2].second ),
           library_name, full_path, no_link_errors );
 
         start = what[0].second; // update search position


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk