File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
[pid=pid]/[org]/[repo]/[id=number] Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ export function detectLanguage(code: string): (SpecialLanguage | (string & {}))
13
13
const match = code
14
14
. split ( "\n" , 1 ) [ 0 ]
15
15
?. trim ( )
16
- ?. match ( / ^ (?: \/ \/ | # ) ? [ ^ ! ] + ?\. ( [ A - Z a - z 0 - 9 ] { 1 , 10 } ) $ / ) ;
16
+ ?. match ( / ^ (?: \/ \/ | # ) ? [ ^ ! ] + ?\. ( [ A - Z a - z \d ] { 1 , 10 } ) $ / ) ;
17
17
if ( match ) return match [ 1 ] ;
18
18
19
- const hasHTML = / < \/ [ a - z A - Z 0 - 9 - ] + > / . test ( code ) ;
19
+ const hasHTML = / < \/ [ a - z A - Z \d - ] + > / . test ( code ) ;
20
20
const hasJS = / ( l e t | v a r | c o n s t | = | \/ \/ ) / . test ( code ) ;
21
21
22
22
if ( hasHTML && hasJS ) return "svelte" ;
Original file line number Diff line number Diff line change 164
164
]}
165
165
>
166
166
<Accordion .Trigger
167
- class =" group bg-secondary px-4 py-3 hover:bg-secondary/75 hover:no-underline data-[state=open]:rounded-b-none [& >svg]:size-[revert-layer] [& >svg]:w-4"
167
+ class =" group bg-secondary px-4 py-3 hover:bg-secondary/75 hover:no-underline data-[state=open]:rounded-b-none [& >svg]:my-auto [& >svg]:w-4"
168
168
>
169
169
<div class =" flex w-full items-center gap-2 xs:gap-1" >
170
170
<div class =" flex flex-col items-start gap-1" >
208
208
{@render badges ()}
209
209
</div >
210
210
</div >
211
- <span class =" mr-4 ml-auto flex text-right text-sm text-muted-foreground xs:mr-2 xs:ml-0" >
211
+ <span class =" ml-auto flex text-right text-sm text-muted-foreground xs:mr-2 xs:ml-0" >
212
212
<span class =" mr-1 hidden xs:block" >•</span >
213
213
<Tooltip .Provider >
214
214
<Tooltip .Root delayDuration ={300 }>
You can’t perform that action at this time.
0 commit comments