File tree Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Expand file tree Collapse file tree 3 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -319,18 +319,21 @@ const allowedRefs = [
319
319
'FilterFunction' ,
320
320
'FormValidationResult' ,
321
321
'Group' ,
322
+ 'GroupSummary' ,
322
323
'InternalDataTableHeader' ,
323
324
'ListItem' ,
324
325
'LocationStrategyFunction' ,
325
326
'OpenSelectStrategyFunction' ,
326
327
'OpenStrategy' ,
327
328
'OpenStrategyFunction' ,
328
329
'ScrollStrategyFunction' ,
330
+ 'SelectableItem' ,
329
331
'SelectItemKey' ,
330
332
'SelectStrategy' ,
331
333
'SelectStrategyFunction' ,
332
334
'SortItem' ,
333
335
'SubmitEventPromise' ,
336
+ 'ItemKeySlot' ,
334
337
'TemplateRef' ,
335
338
'TouchHandlers' ,
336
339
'ValidationRule' ,
@@ -349,7 +352,10 @@ const plainRefs = [
349
352
'DataTableItem' ,
350
353
'ListItem' ,
351
354
'Group' ,
355
+ 'GroupSummary' ,
352
356
'DataIteratorItem' ,
357
+ 'ItemKeySlot' ,
358
+ 'SelectItemKey' ,
353
359
]
354
360
355
361
function formatDefinition ( definition : Definition ) {
@@ -397,6 +403,9 @@ function formatDefinition (definition: Definition) {
397
403
} else {
398
404
formatted = definition . text
399
405
}
406
+ if ( allowedRefs . includes ( definition . ref ) ) {
407
+ formatted = `<a href="https://github.com/vuetifyjs/vuetify/blob/master/packages/${ definition . source } " target="_blank">${ formatted } </a>`
408
+ }
400
409
break
401
410
case 'interface' :
402
411
case 'boolean' :
@@ -409,10 +418,6 @@ function formatDefinition (definition: Definition) {
409
418
}
410
419
411
420
definition . formatted = formatted
412
-
413
- if ( allowedRefs . includes ( formatted ) ) {
414
- definition . formatted = `<a href="https://github.com/vuetifyjs/vuetify/blob/master/packages/${ definition . source } " target="_blank">${ formatted } </a>`
415
- }
416
421
}
417
422
418
423
// eslint-disable-next-line complexity
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ export function sortByKey (data: Record<string, any>) {
241
241
export function stripLinks ( str : string ) : [ string , Record < string , string > ] {
242
242
let out = str . slice ( )
243
243
const obj : Record < string , string > = { }
244
- const regexp = / < a . * ?> ( .* ?) < \/ a > / g
244
+ const regexp = / < a . + ?> ( .+ ?) < \/ a > / g
245
245
246
246
let matches = regexp . exec ( str )
247
247
Original file line number Diff line number Diff line change 1
1
export function stripLinks ( str : string ) : [ string , Record < string , string > ] {
2
2
let out = str . slice ( )
3
3
const obj : Record < string , string > = { }
4
- const regexp = / < a . * ?> ( .* ?) < \/ a > / g
4
+ const regexp = / < a . + ?> ( .+ ?) < \/ a > / g
5
5
6
6
let matches = regexp . exec ( str )
7
7
You can’t perform that action at this time.
0 commit comments