prettify-bru 1.5.3 → 1.5.4

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/lib/format.mjs +1 -1
  2. package/package.json +1 -1
package/lib/format.mjs CHANGED
@@ -134,7 +134,7 @@ async function formatBlock(fileContents, blockName, parser) {
134
134
  * @returns {string}
135
135
  */
136
136
  function wrapNonStringPlaceholdersInDelimiters(jsonBlock) {
137
- return jsonBlock.replace(/(?<!["])[{]{2}[^}]+}}(?!["⇎])/g, '"⇎$&⇎"')
137
+ return jsonBlock.replace(/(:[^"]*)([{]{2}[^}]+}})([^"⇎])/g, '$1"⇎$2⇎"$3')
138
138
  }
139
139
 
140
140
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prettify-bru",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "Prettifies JSON and JavaScript blocks in Bruno .bru files",
5
5
  "keywords": [
6
6
  "bruno",