From 58c621070c1b30a36bc528f3cf91e755996002db Mon Sep 17 00:00:00 2001 From: ecmel Date: Mon, 25 Sep 2023 20:34:43 +0300 Subject: [PATCH] fixed script tag --- index.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index ead1f20..1553a64 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ const { parsers } = require("prettier/parser-html"); const regex = - /"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|.*?<\/title>|.*?<\/textarea>|(<%([^>]*?)%>)/gs; + /"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|.*?<\/title>|.*?<\/textarea>|.*?<\/script>|(<%([^>]*?)%>)/gs; const replacer = (m, t, c) => (!t ? m : ``); diff --git a/package-lock.json b/package-lock.json index 30758e3..615fded 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "prettier-plugin-ejs", - "version": "0.0.17", + "version": "0.0.18", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "prettier-plugin-ejs", - "version": "0.0.17", + "version": "0.0.18", "license": "MIT", "devDependencies": { "prettier": "^2.8.8" diff --git a/package.json b/package.json index e20da52..1fcfd9b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "prettier-plugin-ejs", "displayName": "Prettier EJS Plugin", - "version": "0.0.17", + "version": "0.0.18", "description": "A Prettier plugin for Embedded JavaScript Templating (EJS).", "keywords": [ "prettier",