From de29888660144f0e552f741348a2b637f8dea1dc Mon Sep 17 00:00:00 2001 From: Archimedes Smith Date: Wed, 8 Aug 2018 19:51:15 +0100 Subject: [PATCH] fix: support backtick quoted templateUrl --- preprocessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocessor.js b/preprocessor.js index 6234c9fbce..0493dc4193 100644 --- a/preprocessor.js +++ b/preprocessor.js @@ -1,5 +1,5 @@ const process = require('ts-jest').process; -const TEMPLATE_URL_REGEX = /templateUrl\s*:\s*('|")(\.\/){0,}(.*)('|")/g; +const TEMPLATE_URL_REGEX = /templateUrl\s*:\s*('|"|`)(\.\/){0,}(.*)('|"|`)/g; const STYLE_URLS_REGEX = /styleUrls\s*:\s*\[[^\]]*\]/g; const ESCAPE_TEMPLATE_REGEX = /(\${|\`)/g;