improved display

This commit is contained in:
dcore94 2024-04-23 16:46:47 +02:00
parent f7cd0932b5
commit b254262f58
1 changed files with 1 additions and 1 deletions

View File

@ -1011,7 +1011,7 @@ class CCPMethodEditorController extends HTMLElement {
}
if(i.schema.format === "file"){
def = Array.isArray(def) ? def : [def]
def = def.map(v=>v.substring(0,5) + "......" + v.substring(v.length-5))
def = def.map(v=>v.length > 15 ? v.substring(0,5) + "..." + v.substring(v.length-5) : v)
}
return acc.replaceAll(r, def)
}, code)