mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18: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) {
|
onImageError(event: Event, stockName: string) {
|
||||||
let fallbackName = '';
|
let fallbackName = '';
|
||||||
|
|
||||||
const isLoco = /.-\d/.test(stockName);
|
const isLoco = /.-\d{3}/.test(stockName);
|
||||||
|
|
||||||
if (isLoco) {
|
if (isLoco) {
|
||||||
fallbackName += 'loco-';
|
fallbackName += 'loco-';
|
||||||
|
|||||||
Reference in New Issue
Block a user