From 743b0163133836f073161fa530d88de4acf81d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Fri, 13 Aug 2021 14:16:33 +0300 Subject: [PATCH] Don't call deprecated compile regex method --- editors/code/src/toolchain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editors/code/src/toolchain.ts b/editors/code/src/toolchain.ts index 355dd76fe5..9a1e79e3ba 100644 --- a/editors/code/src/toolchain.ts +++ b/editors/code/src/toolchain.ts @@ -133,7 +133,7 @@ export async function getRustcId(dir: string): Promise { // do not memoize the result because the toolchain may change between runs const data = await execute(`${rustcPath} -V -v`, { cwd: dir }); - const rx = /commit-hash:\s(.*)$/m.compile(); + const rx = /commit-hash:\s(.*)$/m; return rx.exec(data)![1]; }