Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports unicode characters #30

Closed
nrako opened this issue Oct 11, 2012 · 8 comments
Closed

Supports unicode characters #30

nrako opened this issue Oct 11, 2012 · 8 comments

Comments

@nrako
Copy link

nrako commented Oct 11, 2012

Unicode characters isn't supported (e.g: éàèâüöäüкийلعرب日本語...)

I've come with a quick-fix with XRegexp lib + the unicode addon http://xregexp.com/plugins/#unicode

regexp = XRegExp ? new XRegExp('(\\s+|^)' + flag + '(\\p{L}+)$', 'gi') : (the_non_unicode_regexp);

What would you think of this solution?

@ichord
Copy link
Owner

ichord commented Oct 15, 2012

It looks good. let me take a look and think.(too busy this day.) But i don't want At.js with any dependencies.... or may be there is a batter way to extend function..

@nrako
Copy link
Author

nrako commented Oct 16, 2012

What would you think of getting the RegExp from the options (string|RegExp)? That would allow any tweaking of the regex.

@ichord
Copy link
Owner

ichord commented Oct 18, 2012

It seems a good idea! I did think about that before. But I want to rewrite this plugins, and provide api and batter ui. But i don't have much time in mouths. It may move slowly...

@richarddong
Copy link

Unicode character support STRONGLY needed

@ichord
Copy link
Owner

ichord commented Dec 16, 2012

implemting in issues #29

@ichord ichord closed this as completed Dec 16, 2012
@richarddong
Copy link

@liudangyi

@tyaramis
Copy link

I have also unicode support problem. I used @nrako solution and it works almost.
The only problem that I have is;
while typing the full name of an user, if the lastName contains unicode chr, at the end of the last name, the popup window will be disappeared, after I pressed the space bar.
For example,
"Béguin John"

After typing "@béguin", I press the space bar in order to type further the first name of the user, but the name suggestion window will be disappeared.

This does not happen if the last name does not contain unicode chrs. I can write full name without any problem.

Any idea?

Thanks

@ichord
Copy link
Owner

ichord commented Jan 20, 2014

@vahtel vahtel mentioned this issue Aug 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants