diff --git a/ios/ReactNativeConfig/BuildDotenvConfig.ruby b/ios/ReactNativeConfig/BuildDotenvConfig.ruby index 0d7b9e7..f443bfd 100755 --- a/ios/ReactNativeConfig/BuildDotenvConfig.ruby +++ b/ios/ReactNativeConfig/BuildDotenvConfig.ruby @@ -15,7 +15,7 @@ puts "Reading env from #{file}" dotenv = begin # https://regex101.com/r/SLdbes/1 - dotenv_pattern = /^(?[[:upper:]_]+)=((?["'])?(?.*?[^\\])\k?|)$/ + dotenv_pattern = /^(?[[:alnum:]_]+)=((?["'])?(?.*?[^\\])\k?|)$/ # find that above node_modules/react-native-config/ios/ raw = File.read(File.join(Dir.pwd, "../../../#{file}")) raw.split("\n").inject({}) do |h, line|