Skip to content

Commit

Permalink
Issue 67062: Improved regex in autocomplete JavaScript (issue118).
Browse files Browse the repository at this point in the history
git-svn-id: http://rietveld.googlecode.com/svn/trunk@418 e30e9e8f-1b4c-0410-881d-6f13584adfe0
  • Loading branch information
albrecht.andi committed May 18, 2009
1 parent 8f6f8ba commit c28d4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codereview/views.py
Expand Up @@ -100,7 +100,7 @@ def render(self, name, value, attrs=None):
scrollHeight: 300,
matchContains: true,
formatResult : function(row) {
return row[0].replace(/ (\(.+?\))/gi, '');
return row[0].replace(/ .+/gi, '');
}
});
</script>''' % name)
Expand Down

0 comments on commit c28d4ff

Please sign in to comment.