Browse Source

Allows \n in token groups

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

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

@ -144,7 +144,7 @@ const tokenRegex = /\$\{('.*?[^\\]'|\W*)?([^|]*?)(?:\|(\d+)(-|\?)?)?('.*?[^\\]'|
const tokenSanitizeRegex = /\$\{(?:'.*?[^\\]'|\W*)?(\w*?)(?:'.*?[^\\]'|[\W\d]*)\}/g;
const tokenGroupCharacter = "'";
const tokenGroupCharacterEscapedRegex = /(\\')/g;
const tokenGroupRegex = /^'?(.*?)'?$/;
const tokenGroupRegex = /^'?(.*?)'?$/s;
export interface TokenOptions {
collapseWhitespace: boolean;

Loading…
Cancel
Save