mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
Support PNI in QualifiedAddress.parse
This commit is contained in:
@@ -8,7 +8,8 @@ import { isServiceIdString } from './ServiceId';
|
||||
import type { AddressStringType } from './Address';
|
||||
import { Address } from './Address';
|
||||
|
||||
const QUALIFIED_ADDRESS_REGEXP = /^([:0-9a-f-]+):([:0-9a-f-]+).(\d+)$/i;
|
||||
const QUALIFIED_ADDRESS_REGEXP =
|
||||
/^((?:PNI:)?[:0-9a-f-]+):((?:PNI:)?[:0-9a-f-]+).(\d+)$/i;
|
||||
|
||||
export type QualifiedAddressCreateOptionsType = Readonly<{
|
||||
ourServiceId: ServiceIdString;
|
||||
|
||||
Reference in New Issue
Block a user