community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1799053 - in /comdev/reporter.apache.org/trunk/site/js: coffee/main.coffee tabs.js
Date Sun, 18 Jun 2017 07:41:01 GMT
Author: humbedooh
Date: Sun Jun 18 07:41:01 2017
New Revision: 1799053

URL: http://svn.apache.org/viewvc?rev=1799053&view=rev
Log:
s/find/search/

Modified:
    comdev/reporter.apache.org/trunk/site/js/coffee/main.coffee
    comdev/reporter.apache.org/trunk/site/js/tabs.js

Modified: comdev/reporter.apache.org/trunk/site/js/coffee/main.coffee
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/coffee/main.coffee?rev=1799053&r1=1799052&r2=1799053&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/coffee/main.coffee (original)
+++ comdev/reporter.apache.org/trunk/site/js/coffee/main.coffee Sun Jun 18 07:41:01 2017
@@ -47,7 +47,7 @@ getWednesdays = (mo, y) ->
 # check if the entry is a wildcard month
 
 everyMonth = (s) ->
-    if (s.find('Next month') != -1)
+    if (s.search /next month/i != -1)
         return true
     return s == 'Every month'
 

Modified: comdev/reporter.apache.org/trunk/site/js/tabs.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/tabs.js?rev=1799053&r1=1799052&r2=1799053&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/tabs.js (original)
+++ comdev/reporter.apache.org/trunk/site/js/tabs.js Sun Jun 18 07:41:01 2017
@@ -157,7 +157,7 @@ getWednesdays = function(mo, y) {
 };
 
 everyMonth = function(s) {
-  if (s.find('Next month') !== -1) {
+  if (s.search(/next month/i !== -1)) {
     return true;
   }
   return s === 'Every month';



Mime
View raw message