Skip to content

Commit

Permalink
feat(parser): allow to escape identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
RomainLanz committed Mar 26, 2024
1 parent b5b63fa commit fbba16b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/parser.ts
Expand Up @@ -212,6 +212,12 @@ export class EnvParser {

continue $keyLoop
}

if (value.startsWith(`${identifier}\\:`)) {
result[key] = identifier + value.substring(identifier.length + 1)

continue $keyLoop
}
}

result[key] = value
Expand Down

0 comments on commit fbba16b

Please sign in to comment.