[ARVADOS] updated: bbf2bc5ce6b6b753fa494373b8264ccee1e0d340

Git user git at public.curoverse.com
Thu Sep 7 22:18:26 EDT 2017


Summary of changes:
 apps/workbench/app/assets/javascripts/to_tsquery.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

       via  bbf2bc5ce6b6b753fa494373b8264ccee1e0d340 (commit)
      from  43eb8f415a1a28bfb721892d51b5ba002ac113ea (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit bbf2bc5ce6b6b753fa494373b8264ccee1e0d340
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Thu Sep 7 22:17:39 2017 -0400

    12194: Handle to_tsquery(null).
    
    Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>

diff --git a/apps/workbench/app/assets/javascripts/to_tsquery.js b/apps/workbench/app/assets/javascripts/to_tsquery.js
index 0192d1f..fc05b26 100644
--- a/apps/workbench/app/assets/javascripts/to_tsquery.js
+++ b/apps/workbench/app/assets/javascripts/to_tsquery.js
@@ -16,7 +16,7 @@
 // "// "     => null
 // ""        => null
 window.to_tsquery = function(q) {
-    q = q.replace(/\W+/g, ' ').trim().replace(/ /g, ':*&')
+    q = (q || '').replace(/\W+/g, ' ').trim().replace(/ /g, ':*&')
     if (q == '')
         return null
     return q + ':*'

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list