fix(rc): regex works to the end of the line (#437)

This commit is contained in:
Andrew Razumovsky
2017-12-22 06:47:30 +02:00
committed by Caleb Boyd
parent 719804eb2f
commit cb26021296
+1 -1
View File
@@ -13,7 +13,7 @@ export default async function nodeRc(compiler: NexeCompiler, next: () => Promise
const isVar = /^[A-Z_]+$/.test(value)
value = isVar ? value : `"${value}"`
file.contents = file.contents.replace(
new RegExp(`VALUE "${key}",*`),
new RegExp(`VALUE "${key}",.*`),
`VALUE "${key}", ${value}`
)
})