Przeglądaj źródła

Replace negative lookbehind with a second regex

This was causing errors on Safari.
master
Fen Dweller 5 lat temu
rodzic
commit
44caddd32e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      presets/objects.js

+ 1
- 1
presets/objects.js Wyświetl plik

@@ -75,7 +75,7 @@ function makeHeight(info, category, prefix = "", type = "objects") {
views[object[0]] = { views[object[0]] = {
height: math.unit(object[1], object[2]), height: math.unit(object[1], object[2]),
image: { source: src }, image: { source: src },
name: object[0].replace(/-/g, " ").replace(/\b(?<!')\w/g, x => x.toUpperCase()),
name: object[0].replace(/-/g, " ").replace(/\b\w/g, x => x.toUpperCase()).replace(/'[A-Z]/g, x => x.toLowerCase()),
rename: true rename: true
} }
}); });


Ładowanie…
Anuluj
Zapisz