MCPcopy Create free account
hub / github.com/M66B/FairEmail / getEmailExtra

Method getEmailExtra

app/src/main/java/eu/faircode/email/UriHelper.java:190–203  ·  view source on GitHub ↗
(String email)

Source from the content-addressed store, hash-verified

188 }
189
190 static String getEmailExtra(String email) {
191 if (TextUtils.isEmpty(email))
192 return null;
193
194 int plus = email.indexOf('+');
195 if (plus < 0)
196 return null;
197
198 int at = email.indexOf('@', plus + 1);
199 if (at < 0)
200 return null;
201
202 return email.substring(plus + 1, at);
203 }
204
205 static String getEmailDomain(String address) {
206 if (address == null)

Callers 1

onActionMoveMethod · 0.95

Calls 2

indexOfMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected