Kaynağa Gözat

Replaces broken tokens with an empty string

main
Eric Amodio 4 yıl önce
ebeveyn
işleme
fdf1e7678a
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      src/system/string.ts

+ 1
- 1
src/system/string.ts Dosyayı Görüntüle

@ -74,7 +74,7 @@ const pathStripTrailingSlashRegex = /\/$/g;
const tokenRegex = /\$\{(".*?"|\W*)?([^|]*?)(?:\|(\d+)(-|\?)?)?(".*?"|\W*)?\}/g;
const tokenSanitizeRegex = /\$\{(?:".*?"|\W*)?(\w*?)(?:".*?"|[\W\d]*)\}/g;
// eslint-disable-next-line no-template-curly-in-string
const tokenSanitizeReplacement = '$${this.$1}';;
const tokenSanitizeReplacement = "$${this.$1 ?? ''}";;
export interface TokenOptions {
collapseWhitespace: boolean;

Yükleniyor…
İptal
Kaydet