|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61443 - branches/inspect/tools/inspect
From: daniel_james_at_[hidden]
Date: 2010-04-20 17:59:11
Author: danieljames
Date: 2010-04-20 17:59:10 EDT (Tue, 20 Apr 2010)
New Revision: 61443
URL: http://svn.boost.org/trac/boost/changeset/61443
Log:
Ignore spaces surrounding urls. Refs #4122.
Text files modified:
branches/inspect/tools/inspect/link_check.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: branches/inspect/tools/inspect/link_check.cpp
==============================================================================
--- branches/inspect/tools/inspect/link_check.cpp (original)
+++ branches/inspect/tools/inspect/link_check.cpp 2010-04-20 17:59:10 EDT (Tue, 20 Apr 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