@@ -73,12 +73,14 @@ if (fs.existsSync(frontendDist)) {
7373 : "https://lncurl.lol/og-default.jpg" ;
7474 html = html
7575 . replace ( / < t i t l e > [ ^ < ] * < \/ t i t l e > / , `<title>${ fm . title } </title>` )
76- . replace ( / ( < m e t a n a m e = " d e s c r i p t i o n " c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ fm . description } $2` )
77- . replace ( / ( < m e t a p r o p e r t y = " o g : t i t l e " c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ fm . title } $2` )
78- . replace ( / ( < m e t a p r o p e r t y = " o g : d e s c r i p t i o n " c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ fm . description } $2` )
79- . replace ( / ( < m e t a p r o p e r t y = " o g : u r l " c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ postUrl } $2` )
80- . replace ( / ( < m e t a p r o p e r t y = " o g : i m a g e " c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ image } $2` )
81- . replace ( / ( < m e t a n a m e = " t w i t t e r : i m a g e " c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ image } $2` ) ;
76+ . replace ( / ( < m e t a [ ^ > ] * n a m e = " d e s c r i p t i o n " [ ^ > ] * c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ fm . description } $2` )
77+ . replace ( / ( < m e t a [ ^ > ] * p r o p e r t y = " o g : t i t l e " [ ^ > ] * c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ fm . title } $2` )
78+ . replace ( / ( < m e t a [ ^ > ] * p r o p e r t y = " o g : d e s c r i p t i o n " [ ^ > ] * c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ fm . description } $2` )
79+ . replace ( / ( < m e t a [ ^ > ] * p r o p e r t y = " o g : u r l " [ ^ > ] * c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ postUrl } $2` )
80+ . replace ( / ( < m e t a [ ^ > ] * p r o p e r t y = " o g : i m a g e " [ ^ > ] * c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ image } $2` )
81+ . replace ( / ( < m e t a [ ^ > ] * n a m e = " t w i t t e r : t i t l e " [ ^ > ] * c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ fm . title } $2` )
82+ . replace ( / ( < m e t a [ ^ > ] * n a m e = " t w i t t e r : d e s c r i p t i o n " [ ^ > ] * c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ fm . description } $2` )
83+ . replace ( / ( < m e t a [ ^ > ] * n a m e = " t w i t t e r : i m a g e " [ ^ > ] * c o n t e n t = " ) [ ^ " ] * ( " ) / , `$1${ image } $2` ) ;
8284 } catch {
8385 // fall through and serve default html
8486 }
0 commit comments