From 4525619a739406c78437a9c497d9d8bb1bdd04ed Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Mon, 18 Mar 2019 16:24:54 +0200 Subject: [PATCH] refactor(ivy): remove unnecessary escaping in RegExp (#28963) PR Close #28963 --- packages/compiler-cli/src/ngtsc/path/src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/compiler-cli/src/ngtsc/path/src/util.ts b/packages/compiler-cli/src/ngtsc/path/src/util.ts index a416450fb0..267301dd97 100644 --- a/packages/compiler-cli/src/ngtsc/path/src/util.ts +++ b/packages/compiler-cli/src/ngtsc/path/src/util.ts @@ -9,7 +9,7 @@ // TODO(alxhub): Unify this file with `util/src/path`. const TS_DTS_JS_EXTENSION = /(?:\.d)?\.ts$|\.js$/; -const ABSOLUTE_PATH = /^([a-zA-Z]\:\/|\/)/; +const ABSOLUTE_PATH = /^([a-zA-Z]:\/|\/)/; /** * Convert Windows-style separators to POSIX separators.