Compare commits

...

1 Commits

Author SHA1 Message Date
LP B
d2a00e7e01 fix(app/env-vars): make key regex non-greedy to match on first equal sign 2021-08-31 16:18:56 +02:00

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})$`);