소스 검색

Replace negative lookbehind with a second regex

This was causing errors on Safari.
master
Fen Dweller 5 년 전
부모
커밋
44caddd32e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      presets/objects.js

+ 1
- 1
presets/objects.js 파일 보기

@@ -75,7 +75,7 @@ function makeHeight(info, category, prefix = "", type = "objects") {
views[object[0]] = {
height: math.unit(object[1], object[2]),
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
}
});


불러오는 중...
취소
저장