|
From: <rv...@us...> - 2012-02-20 21:59:06
|
Revision: 1080
http://treebase.svn.sourceforge.net/treebase/?rev=1080&view=rev
Author: rvos
Date: 2012-02-20 21:59:00 +0000 (Mon, 20 Feb 2012)
Log Message:
-----------
Splitting query string on commas instead
Modified Paths:
--------------
trunk/treebase-web/src/main/webapp/scripts/common.js
Modified: trunk/treebase-web/src/main/webapp/scripts/common.js
===================================================================
--- trunk/treebase-web/src/main/webapp/scripts/common.js 2012-02-20 21:39:26 UTC (rev 1079)
+++ trunk/treebase-web/src/main/webapp/scripts/common.js 2012-02-20 21:59:00 UTC (rev 1080)
@@ -244,7 +244,8 @@
// splits a string on words (including curies) and quoted phrases
TreeBASE.splitWords = function(query){
- return query.match(/[A-Za-z0-9:]+|"[^"]+"|'[^']+'/g);
+ //return query.match(/[A-Za-z0-9: ]+|"[^"]+"|'[^']+'|/g);
+ return query.split(",");
};
// infers whether a search word is an identifier or a string
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|