Skip to content

Commit 52e94c0

Browse files
vsamofalNikaple
authored andcommitted
chore: updated regular expression to define references
1 parent e7d77b3 commit 52e94c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/loader/file-loader.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function transformFileLoaderResult(
177177
if (resolvedValue !== null) {
178178
if (typeof resolvedValue === 'string') {
179179
// resolve reference first
180-
if (resolvedValue.match(/\$\{(.+?)\}/)) {
180+
if (resolvedValue.match(/(?!(?<=\\))\$\{(.+?)\}/)) {
181181
try {
182182
resolvedValue = transformFileLoaderResult(
183183
resolvedValue,

0 commit comments

Comments
 (0)