File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/shared-utils/src Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -353,13 +353,14 @@ export function getCustomFunctionDetails (func: Function): CustomState {
353
353
// Trim any excess whitespace from the argument string
354
354
const match = matches && matches [ 0 ]
355
355
const args = typeof match === 'string'
356
- ? `( ${ match . substring ( 1 , match . length - 2 ) . split ( ',' ) . map ( a => a . trim ( ) ) . join ( ', ' ) } )`
356
+ ? match
357
357
: '(?)'
358
358
const name = typeof func . name === 'string' ? func . name : ''
359
359
return {
360
360
_custom : {
361
361
type : 'function' ,
362
- display : `<span>f</span> ${ escape ( name ) } ${ args } ` ,
362
+ display : `<span style="opacity:.5;">function</span> ${ escape ( name ) } ${ args } ` ,
363
+ tooltip : string . trim ( ) ? `<pre>${ string } </pre>` : null ,
363
364
_reviveId : reviveCache . cache ( func ) ,
364
365
} ,
365
366
}
You can’t perform that action at this time.
0 commit comments