Fix counters
This commit is contained in:
parent
404bf118d4
commit
87ea74a00c
|
@ -512,7 +512,7 @@ public class PixelfedComposeActivity extends BaseActivity implements UploadStatu
|
||||||
String content = toot_content.getText().toString();
|
String content = toot_content.getText().toString();
|
||||||
String contentCount = content;
|
String contentCount = content;
|
||||||
if (social == UpdateAccountInfoAsyncTask.SOCIAL.MASTODON) {
|
if (social == UpdateAccountInfoAsyncTask.SOCIAL.MASTODON) {
|
||||||
contentCount = contentCount.replaceAll("(^|[^/\\w])@(([a-z0-9_]+)@[a-z0-9.\\-]+[a-z0-9]+)", "$1@$3");
|
contentCount = contentCount.replaceAll("(?i)(^|[^/\\w])@(([a-z0-9_]+)@[a-z0-9\\.\\-]+[a-z0-9]+)", "$1@$3");
|
||||||
Matcher matcherALink = Patterns.WEB_URL.matcher(contentCount);
|
Matcher matcherALink = Patterns.WEB_URL.matcher(contentCount);
|
||||||
while (matcherALink.find()) {
|
while (matcherALink.find()) {
|
||||||
final String url = matcherALink.group(1);
|
final String url = matcherALink.group(1);
|
||||||
|
|
|
@ -688,7 +688,7 @@ public class TootActivity extends BaseActivity implements UploadStatusDelegate,
|
||||||
String cwContent = toot_cw_content.getText().toString();
|
String cwContent = toot_cw_content.getText().toString();
|
||||||
String contentCount = content;
|
String contentCount = content;
|
||||||
if (social == UpdateAccountInfoAsyncTask.SOCIAL.MASTODON) {
|
if (social == UpdateAccountInfoAsyncTask.SOCIAL.MASTODON) {
|
||||||
contentCount = contentCount.replaceAll("(^|[^/\\w])@(([a-z0-9_]+)@[a-z0-9\\.\\-]+[a-z0-9]+)", "$1@$3");
|
contentCount = contentCount.replaceAll("(?i)(^|[^/\\w])@(([a-z0-9_]+)@[a-z0-9\\.\\-]+[a-z0-9]+)", "$1@$3");
|
||||||
Matcher matcherALink = Patterns.WEB_URL.matcher(contentCount);
|
Matcher matcherALink = Patterns.WEB_URL.matcher(contentCount);
|
||||||
while (matcherALink.find()) {
|
while (matcherALink.find()) {
|
||||||
final String url = matcherALink.group(1);
|
final String url = matcherALink.group(1);
|
||||||
|
|
Loading…
Reference in New Issue