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: sub only matches once
Date Fri, 20 May 2016 00:23:20 GMT
This is an automated email from the ASF dual-hosted git repository.

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

The following commit(s) were added to refs/heads/master by this push:
       new  c3c3005   sub only matches once
c3c3005 is described below

commit c3c3005ab08eb0b5ec6b90f481a608f4c948b5a8
Author: Sebb <sebb@apache.org>
AuthorDate: Fri May 20 01:23:11 2016 +0100

    sub only matches once
---
 www/roster/public_json_common.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/roster/public_json_common.rb b/www/roster/public_json_common.rb
index 477cc4b..5bbb1c0 100644
--- a/www/roster/public_json_common.rb
+++ b/www/roster/public_json_common.rb
@@ -109,7 +109,8 @@ end
 
 # Massage the strings to drop the timestamps so spurious changes are not reported/saved
 def removeTimestamps(s)
-  return s.sub(/  "last_updated|code_version": "[^"]+",/, '')
+  # Drop the first occurrences only (but drop both)
+  return s.sub(/  "last_updated": "[^"]+",/, '').sub(/  "code_version": "[^"]+",/, '')
 end
 
 # Write formatted output to specific file

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

Mime
View raw message