mirror of
https://github.com/selfxyz/self.git
synced 2026-01-23 05:28:02 -05:00
add "public" to regex parser
This commit is contained in:
@@ -83,7 +83,7 @@ export function findTimeOfSignature(eContentDecomposed: any) {
|
||||
}
|
||||
|
||||
export function parsePubKeyString(pubKeyString: string) {
|
||||
const modulusMatch = pubKeyString.match(/modulus: (\w+)/);
|
||||
const modulusMatch = pubKeyString.match(/modulus: ([\w\d]+)\s*public/);
|
||||
const publicExponentMatch = pubKeyString.match(/public exponent: (\w+)/);
|
||||
|
||||
const modulus = modulusMatch ? modulusMatch[1] : null;
|
||||
|
||||
Reference in New Issue
Block a user