git ssb

3+

andrestaltz / easy-ssb-pub



Commit b15158a6a2edb7981364a9333585e24496a8da63

Fix regex for invitation port substitution

Andre Staltz committed on 2/22/2017, 10:35:42 PM
Parent: ccd0d595c8b584eb26db96e7aeb24171c1aadbaa

Files changed

src/index.tschanged
src/index.tsView
@@ -101,9 +101,9 @@
101101 if (err) {
102102 console.error(err);
103103 process.exit(1);
104104 } else {
105- invitation = invitation.replace(/(?=[^\:]*\:)(\d+)(?=\:)/g, `${PUBLIC_PORT}`);
105 + invitation = invitation.replace(/\:(\d+)\:/g, `:${PUBLIC_PORT}:`);
106106 const qrCode = qr.svgObject(invitation) as QRSVG;
107107 res.render('invited', {
108108 invitation: invitation,
109109 qrSize: qrCode.size,

Built with git-ssb-web