whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Also handle NBSP etc
Date Thu, 27 Apr 2017 17:58:37 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  dd95de8   Also handle NBSP etc
dd95de8 is described below

commit dd95de8f36ae7d4f16da8a49b77fa7f5c23c67f3
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Apr 27 18:58:35 2017 +0100

    Also handle NBSP etc
---
 tools/site-scan.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/site-scan.rb b/tools/site-scan.rb
index b344dab..cb63092 100755
--- a/tools/site-scan.rb
+++ b/tools/site-scan.rb
@@ -116,7 +116,7 @@ def getText(txt, node)
   end
   # TODO strip extra text where possible.
   # Note: both copyright and trademark can be in same text (e.g. Cayenne)
-  return txt.gsub(/\s+/, ' ').strip, parent
+  return txt.gsub(/[[:space:]]+/, ' ').strip, parent
 end
 
 $verbose = ARGV.delete '--verbose'

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message