TypeRocket / core

TypeRocket core source files where all the magic lives.
https://typerocket.com
36 stars 21 forks source link

WordPress salts failed #46

Closed Slayvin closed 5 years ago

Slayvin commented 5 years ago

Hello, whenever I install typerocket from composer and type the use:root command, I get this error: "WordPress salts failed".

I think the regex used in this file is the culprit: https://github.com/TypeRocket/core/blob/1fca237410e5c3aacc03e580eb8f9974cf545c32/src/Console/Commands/UseRoot.php#L100

Should be this I guess (removed unnecessary backslashes):

$regex = "/define(.*)here'\);/m";
Slayvin commented 5 years ago

Crap, I just saw there was already a PR on this! #45