Commit b11367a 1 parent 78d8c96 commit b11367a Copy full SHA for b11367a
File tree 1 file changed +16
-7
lines changed
1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -327,13 +327,22 @@ export const mfmLanguage = P.createLanguage({
327
327
} ) ;
328
328
} ,
329
329
rj : r => {
330
- return P . regexp ( / ( R J \d { 6 , 8 } ) / , 1 ) . map ( ( x : any ) => {
331
- return createMfmNode ( 'link' ,
332
- {
333
- silent : false ,
334
- url : `https://www.dlsite.com/home/announce/=/product_id/${ x } .html` ,
335
- } , [ createMfmNode ( 'text' , { text : x } ) ] ) ;
336
- } ) ;
330
+ return P . alt (
331
+ P . regexp ( / ( [ R V B ] [ J E ] \d { 6 , 8 } ) / , 1 ) . map ( ( x : any ) => {
332
+ return createMfmNode ( 'link' ,
333
+ {
334
+ silent : false ,
335
+ url : `https://www.dlsite.com/home/announce/=/product_id/${ x } .html` ,
336
+ } , [ createMfmNode ( 'text' , { text : x } ) ] ) ;
337
+ } ) ,
338
+ P . regexp ( / ( [ R V B ] [ G ] ( \d { 5 } ) ) / , 1 ) . map ( ( x : any ) => {
339
+ return createMfmNode ( 'link' ,
340
+ {
341
+ silent : false ,
342
+ url : `https://www.dlsite.com/home/circle/profile/=/maker_id/${ x } .html` ,
343
+ } , [ createMfmNode ( 'text' , { text : x } ) ] ) ;
344
+ } ) ,
345
+ ) ;
337
346
} ,
338
347
339
348
emoji : ( ) => {
You can’t perform that action at this time.
0 commit comments