mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
fix: niepoprawne miniaturki pojazdów
This commit is contained in:
@@ -98,7 +98,7 @@ export default defineComponent({
|
||||
onImageError(event: Event, stockName: string) {
|
||||
let fallbackName = '';
|
||||
|
||||
const isLoco = /.-\d/.test(stockName);
|
||||
const isLoco = /.-\d{3}/.test(stockName);
|
||||
|
||||
if (isLoco) {
|
||||
fallbackName += 'loco-';
|
||||
|
||||
Reference in New Issue
Block a user