From cb26021296c1fa4eb07eebf536bbd8b5c5070280 Mon Sep 17 00:00:00 2001 From: Andrew Razumovsky Date: Fri, 22 Dec 2017 06:47:30 +0200 Subject: [PATCH] fix(rc): regex works to the end of the line (#437) --- src/patches/node-rc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/patches/node-rc.ts b/src/patches/node-rc.ts index ab89221..4f709d8 100644 --- a/src/patches/node-rc.ts +++ b/src/patches/node-rc.ts @@ -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}` ) })