prettier-plugin-sql-cst 0.22.0 → 0.22.1

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 (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2199,10 +2199,10 @@ function printNode(path, options2, print) {
2199
2199
  var printComment = (path) => {
2200
2200
  const node = path.node;
2201
2201
  if (node.type === "line_comment") {
2202
- if (/^--[^ \t]/.test(node.text)) {
2202
+ if (/^--[^ \t-]/.test(node.text)) {
2203
2203
  return node.text.replace(/^--/, "-- ");
2204
2204
  }
2205
- if (/^#[^ \t!]/.test(node.text)) {
2205
+ if (/^#[^ \t!#]/.test(node.text)) {
2206
2206
  return node.text.replace(/^#/, "# ");
2207
2207
  }
2208
2208
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettier-plugin-sql-cst",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Prettier plugin for SQL",
5
5
  "contributors": [
6
6
  "Barna Magyarkuti <bmagyarkuti@gmail.com>",