PHP-Open-Source-Saver / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
MIT License
729 stars 113 forks source link

fixed replacing of values using regex #145

Closed eschricker closed 2 years ago

eschricker commented 2 years ago

Fixed the env-helper-trait to replace values in .env file using regex

Description

preg_replace is used instead of str_replace to support regex.

Checklist:

Messhias commented 2 years ago

Look good, I believe it doesn't need test, or we should cover it too?

mfn commented 2 years ago

This is now part of 2.0.0-RC1. If you have time and can give it a spin before we push out 2.0.0, that would be great!