mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
Improve the matcher pattern
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
700cf860af
commit
3736fd1483
@ -43,7 +43,7 @@ public class MagicCharPolicy implements AutocompletePolicy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int[] span = new int[2];
|
int[] span = new int[2];
|
||||||
Pattern pattern = Pattern.compile("@.*\\w*", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE);
|
Pattern pattern = Pattern.compile("@+\\S*", Pattern.CASE_INSENSITIVE | Pattern.MULTILINE);
|
||||||
Matcher matcher = pattern.matcher(text);
|
Matcher matcher = pattern.matcher(text);
|
||||||
|
|
||||||
while (matcher.find()) {
|
while (matcher.find()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user