mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
fix(app/env-vars): make key regex non-greedy to match on first equal sign (#5545)
This commit is contained in:
parent
f16fdd3ea7
commit
1b7296d5d1
1 changed files with 1 additions and 1 deletions
|
@ -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})$`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue