fix: sheet info match

This commit is contained in:
Xmader 2020-11-25 00:36:56 -05:00
parent 31d0fd5f23
commit bb31465fca
No known key found for this signature in database
GPG key ID: A20B97FB9EB730E4

View file

@ -95,7 +95,7 @@ export abstract class SheetInfo {
get imgType (): 'svg' | 'png' { get imgType (): 'svg' | 'png' {
const thumbnail = this.thumbnailUrl const thumbnail = this.thumbnailUrl
const imgtype = thumbnail.match(/\.(\w+)$/)![1] const imgtype = thumbnail.match(/score_0\.(\w+)/)![1]
return imgtype as 'svg' | 'png' return imgtype as 'svg' | 'png'
} }
} }