I want to use config:delete command to remove an ip address from General.login_allowlist_ip array but the command never found the value. If I add a new value without dots to an array, the deletion works. I tried to escape dots with backslashes without success.
./console config:set 'General.login_allowlist_ip="18.104.22.168"' Setting [General] login_allowlist_ip = "22.214.171.124"... done.
./console config:get 'General.login_allowlist_ip'` ["126.96.36.199"]
./console config:delete --section=General --key=login_allowlist_ip --value=188.8.131.52` Nothing found
@davidlemaitre thanks for reporting this, you are right, I can see there is a bug there caused by the IP address having
dot in it. Instead of searching for
184.108.40.206, it searches
Hints: this is caused by this line.
update the regex to
/^([a-zA-Z0-9_]+)(?:\.([a-zA-Z0-9_]+))?(?:\[\])?(?:\.([a-zA-Z0-9_.]+))?/, not sure if we want to accept all special characters