Browse Source

Replaces broken tokens with an empty string

main
Eric Amodio 4 years ago
parent
commit
fdf1e7678a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/system/string.ts

+ 1
- 1
src/system/string.ts View File

@ -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;

Loading…
Cancel
Save