You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/04/27 17:58:37 UTC

[whimsy] branch master updated: Also handle NBSP etc

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 <se...@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" <co...@whimsical.apache.org>'].