@prettier/plugin-pug
Advanced tools
Comparing version 1.1.2 to 1.1.3
# Next | ||
[diff](https://github.com/prettier/plugin-pug/compare/1.1.2...master) | ||
[diff](https://github.com/prettier/plugin-pug/compare/1.1.3...master) | ||
# 1.1.3 | ||
[diff](https://github.com/prettier/plugin-pug/compare/1.1.2...1.1.3) | ||
- Fix valid backslash escaping ([#59]) | ||
[#59]: https://github.com/prettier/plugin-pug/issues/59 | ||
# 1.1.2 | ||
@@ -6,0 +14,0 @@ |
{ | ||
"name": "@prettier/plugin-pug", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Prettier Pug Plugin", | ||
@@ -35,6 +35,6 @@ "main": "dist/index.js", | ||
"@types/jest": "~24.0.25", | ||
"@types/node": "~13.1.4", | ||
"@types/node": "~13.1.6", | ||
"@types/prettier": "~1.19.0", | ||
"@typescript-eslint/eslint-plugin": "~2.14.0", | ||
"@typescript-eslint/parser": "~2.14.0", | ||
"@typescript-eslint/eslint-plugin": "~2.15.0", | ||
"@typescript-eslint/parser": "~2.15.0", | ||
"eslint": "~6.8.0", | ||
@@ -46,3 +46,3 @@ "eslint-config-prettier": "~6.9.0", | ||
"prettier": "1.19.1", | ||
"ts-jest": "~24.2.0", | ||
"ts-jest": "~24.3.0", | ||
"typescript": "~3.7.4" | ||
@@ -49,0 +49,0 @@ }, |
@@ -169,2 +169,5 @@ <p align="center"> | ||
As mentioned in [pugjs.org Attribute Interpolation](https://pugjs.org/language/attributes.html#attribute-interpolation) (2.), | ||
you should prefere ES2015 template strings to simplify your attributes. | ||
[Issue 54](https://github.com/prettier/plugin-pug/issues/54) | ||
@@ -171,0 +174,0 @@ |
@@ -480,6 +480,6 @@ import { Doc, FastPath, format, Options, Parser, ParserOptions, Plugin, util } from 'prettier'; | ||
val = formatText(val, singleQuote); | ||
val = val.replace(/#(\{|\[)/g, '\\#$1'); | ||
} | ||
val = val.replace(/^#(\{|\[)/g, '\\#$1'); | ||
if ( | ||
@@ -486,0 +486,0 @@ ['tag', 'id', 'interpolation', 'call', '&attributes', 'filter'].includes( |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135184
225