Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r61828 - trunk/tools/inspect
From: daniel_james_at_[hidden]
Date: 2010-05-06 16:04:52


Author: danieljames
Date: 2010-05-06 16:04:52 EDT (Thu, 06 May 2010)
New Revision: 61828
URL: http://svn.boost.org/trac/boost/changeset/61828

Log:
Ignore spaces surrounding urls. Fixes #4122.
Text files modified:
   trunk/tools/inspect/link_check.cpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/tools/inspect/link_check.cpp
==============================================================================
--- trunk/tools/inspect/link_check.cpp (original)
+++ trunk/tools/inspect/link_check.cpp 2010-05-06 16:04:52 EDT (Thu, 06 May 2010)
@@ -25,7 +25,7 @@
     boost::regbase::normal | boost::regbase::icase);
   boost::regex html_url_regex(
     "<([^\\s<>]*)\\s*[^<>]*\\s+(?:HREF|SRC)" // HREF or SRC
- "\\s*=\\s*(['\"])(.*?)\\2"
+ "\\s*=\\s*(['\"])\\s*(.*?)\\s*\\2"
     "|<!--.*?-->",
     boost::regbase::normal | boost::regbase::icase);
   boost::regex css_url_regex(
@@ -329,7 +329,7 @@
           if(!no_link_errors) {
             ++m_invalid_errors;
             int ln = std::count( contents_begin, url_start, '\n' ) + 1;
- error( library_name, source_path, "Unknown protocol: " + decoded_url, ln );
+ error( library_name, source_path, "Unknown protocol: '" + scheme + "' in url: " + decoded_url, ln );
           }
         }
 


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