prettier-plugin-ejs 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -38,7 +38,7 @@ Please check [Prettier Docs](https://prettier.io/docs/en/plugins.html) for other
38
38
 
39
39
  <div class="<%= red %>"><%= 1 > 0 %></div>
40
40
 
41
- <textarea><%= text %></textarea>
41
+ <textarea><!= text !></textarea>
42
42
  <code><%= text %></code>
43
43
  <pre><%= text %></pre>
44
44
  </div>
@@ -62,7 +62,7 @@ Please check [Prettier Docs](https://prettier.io/docs/en/plugins.html) for other
62
62
 
63
63
  <div class="<%= red %>"><%= 1 > 0 %></div>
64
64
 
65
- <textarea><%= text %></textarea>
65
+ <textarea><!= text !></textarea>
66
66
  <code><%= text %></code>
67
67
  <pre><%= text %></pre>
68
68
  </div>
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  const { parsers } = require("prettier/parser-html");
2
2
 
3
3
  const regex =
4
- /"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|<(?:title|textarea).*?<\/|(<%([^>]*?)%>)/gs;
4
+ /"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|<title.*?>.*?<\/title>|<textarea.*?>.*?<\/textarea>|(<%([^>]*?)%>)/gs;
5
5
 
6
6
  const replacer = (m, t, c) => (!t ? m : `<!${c}!>`);
7
7
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prettier-plugin-ejs",
3
3
  "displayName": "Prettier EJS Plugin",
4
- "version": "0.0.15",
4
+ "version": "0.0.17",
5
5
  "description": "A Prettier plugin for Embedded JavaScript Templating (EJS).",
6
6
  "keywords": [
7
7
  "prettier",