|
From: <rv...@us...> - 2012-02-21 10:00:19
|
Revision: 1082
http://treebase.svn.sourceforge.net/treebase/?rev=1082&view=rev
Author: rvos
Date: 2012-02-21 10:00:10 +0000 (Tue, 21 Feb 2012)
Log Message:
-----------
Don't quote words that are already quoted.
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-21 09:59:04 UTC (rev 1081)
+++ trunk/treebase-web/src/main/webapp/scripts/common.js 2012-02-21 10:00:10 UTC (rev 1082)
@@ -249,7 +249,7 @@
for ( var i = 0; i < words.length; i++ ) {
var word = words[i].replace(/^ */,'');
word = word.replace(/ *$/,'';)
- if ( word.match(/ /) ) {
+ if ( word.match(/ /) && ! word.match(/^".*"$/) ) {
split.push('"' + word + '"');
}
else {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|