diff examples/browser/web/js/browser.js @ 653:3e25f26b6a27

Some minor tweaks to the browser JS/HTML.
author mas01mj
date Thu, 15 Oct 2009 14:47:07 +0000
parents 901803e1305f
children
line wrap: on
line diff
--- a/examples/browser/web/js/browser.js	Thu Oct 15 14:24:36 2009 +0000
+++ b/examples/browser/web/js/browser.js	Thu Oct 15 14:47:07 2009 +0000
@@ -50,7 +50,7 @@
 	
 	if(artistSearchString.length > 0)
 	{
-		queryString += ' FILTER regex(?artist_name, "'+artistSearchString+'", "i")';
+		queryString += ' FILTER regex(?artist_name, "^'+artistSearchString+'", "i")';
 	}
 	else
 	{
@@ -61,7 +61,7 @@
 
 	if(trackSearchString.length > 0)
 	{
-		queryString += ' FILTER regex(?track_title, "'+trackSearchString+'", "i")';
+		queryString += ' FILTER regex(?track_title, "^'+trackSearchString+'", "i")';
 	}
 	else
 	{