fix: sheet info match
This commit is contained in:
parent
31d0fd5f23
commit
bb31465fca
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue