prettier-plugin-ejs 0.0.7 → 0.0.9

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 +1 -1
  2. package/index.js +1 -1
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -10,4 +10,4 @@ npm install --save-dev prettier-plugin-ejs
10
10
 
11
11
  ## Warning
12
12
 
13
- The greater then symbol `>` should not be used inside `<% %>`tags.
13
+ Tags which contains the greater then symbol `>` are not formatted.
package/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  var parserHtml = require('prettier/parser-html');
4
4
 
5
- const regex = /<textarea.*?<\/textarea|"[^"]*"|(<%(.*?)%>)/gs;
5
+ const regex = /<textarea.*?<\/textarea|"[^"]*"|(<%([^>]*?)%>)/gs;
6
6
  function parse(text, parsers, options) {
7
7
  return parserHtml.parsers.html.parse(text.replace(regex, (m, t, c) => (!t ? m : `<?${c}?>`)), parsers, options);
8
8
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "prettier-plugin-ejs",
3
3
  "displayName": "Prettier EJS Plugin",
4
- "version": "0.0.7",
4
+ "version": "0.0.9",
5
5
  "description": "A prettier plugin for Embedded JavaScript Templating.",
6
6
  "keywords": [
7
- "pretiier",
7
+ "prettier",
8
8
  "plugin",
9
9
  "ejs",
10
10
  "html"
@@ -31,7 +31,7 @@
31
31
  "@rollup/plugin-typescript": "^11.0.0",
32
32
  "@types/prettier": "^2.7.2",
33
33
  "prettier": "^2.8.6",
34
- "rollup": "^3.19.1",
34
+ "rollup": "^3.20.1",
35
35
  "tslib": "^2.5.0"
36
36
  },
37
37
  "peerDependencies": {