Skip to content

Commit

Permalink
feat(bazarlist) support svg images
Browse files Browse the repository at this point in the history
  • Loading branch information
seballot committed Jan 19, 2025
1 parent 0f11d84 commit c180e88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/bazar/presentation/javascripts/entries-index-dynamic.js
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ const load = (domElement) => {
baseUrl = baseUrl.replace(/\?$/, '').replace(/\/$/, '')
const fileName = entry[fieldName]
const field = this.fieldInfo(fieldName)

if (fileName.endsWith('.svg')) return `${baseUrl}/files/${fileName}`

let regExp = new RegExp(
`^(${entry.id_fiche}_${field.propertyname}_.*)_(\\d{14})_(\\d{14})\\.([^.]+)$`
)
Expand Down

0 comments on commit c180e88

Please sign in to comment.