fix(app/env-vars): make key regex non-greedy to match on first equal sign (#5545)

pull/5310/head
LP B 2021-09-06 07:23:51 +02:00 committed by GitHub
parent f16fdd3ea7
commit 1b7296d5d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
import _ from 'lodash-es';
export const KEY_REGEX = /(.+)/.source;
export const KEY_REGEX = /(.+?)/.source;
export const VALUE_REGEX = /(.*)?/.source;
const KEY_VALUE_REGEX = new RegExp(`^(${KEY_REGEX})\\s*=(${VALUE_REGEX})$`);