I saw this line 98 but I believe that be unnecessary to use regex it is 3 times slower compared to \w+ is the same result. Case I'm wrong, please fix me. Maybe you can use Unicode to validate strings and gain performance to reduce processing.
|
var envvarNameRe = regexp.MustCompile(`\A[a-zA-Z_][a-zA-Z0-9_]*\z`) |