diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -67,7 +67,7 @@ export default function PrerenderLoader (content) {
   // @note: this is only used when the entry module exports a String or function
   // that resolves to a String, otherwise the whole document is serialized.
   let inject = false;
-  if (!this.request.match(/.(js|ts)x?$/i)) {
+  if (!this.request.match(/\.(js|ts)x?$/i)) {
     const matches = content.match(PRERENDER_REG);
     if (matches) {
       inject = true;
Fix detection of if the loaded resource can be a JSDOM template

Previous regexp has an unescaped dot at the beginning (`/.(js|ts)x?$/i`) and this regexp matched against files .ejs, that are actually html.