securize accounName name pattern
This commit is contained in:
parent
2ffad41ea6
commit
a5fcc29c90
|
@ -28,6 +28,8 @@ export class ToolsService {
|
||||||
console.warn(`accountName ${accountName}`);
|
console.warn(`accountName ${accountName}`);
|
||||||
console.warn(result);
|
console.warn(result);
|
||||||
|
|
||||||
|
if(accountName[0] === '@') accountName = accountName.substr(1);
|
||||||
|
|
||||||
const foundAccount = result.accounts.filter(
|
const foundAccount = result.accounts.filter(
|
||||||
x => x.acct.toLowerCase() === accountName.toLowerCase()
|
x => x.acct.toLowerCase() === accountName.toLowerCase()
|
||||||
|| x.acct.toLowerCase() === accountName.toLowerCase().split('@')[0]
|
|| x.acct.toLowerCase() === accountName.toLowerCase().split('@')[0]
|
||||||
|
|
Loading…
Reference in New Issue