Skip to content

Commit

Permalink
Typeahead: allow ideographic whitespace for token separation
Browse files Browse the repository at this point in the history
Summary:Allow ideographic whitespace for token separation. This allows users to search for names in CJK languages without switching input modes between words, if searching for multiple tokens.

  児玉 太郎 // worked previously, still works now
  児玉 太郎 // works now, didn't work previously

Reviewers:epriestley

Test Plan:tried searching via typeahead using ' ' (ascii 32) and using ideographic whitespace (U+3000) to separate search tokens. got results for both.

Revert Plan:

Tags:
  • Loading branch information
kdelong committed Mar 2, 2012
1 parent 46af051 commit 0377293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/control/typeahead/source/TypeaheadSource.js
Expand Up @@ -262,7 +262,7 @@ JX.install('TypeaheadSource', {
if (!str.length) {
return [];
}
return str.split(/ /g);
return str.split(/\s/g);
},
_defaultTransformer : function(object) {
return {
Expand Down

0 comments on commit 0377293

Please sign in to comment.