@salesforcedevs/dx-components 1.40.3-toolbar-fix → 1.40.4-code-block-fix-alpha

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/dx-components",
3
- "version": "1.40.3-toolbar-fix",
3
+ "version": "1.40.4-code-block-fix-alpha",
4
4
  "description": "DX Lightning web components",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -44,5 +44,5 @@
44
44
  "luxon": "3.4.4",
45
45
  "msw": "^2.12.4"
46
46
  },
47
- "stableVersion": "1.40.3"
47
+ "stableVersion": "1.40.4"
48
48
  }
@@ -15,9 +15,6 @@ import { normalizeBoolean } from "dxUtils/normalizers";
15
15
  - SQL Documentation -> SQL
16
16
  */
17
17
 
18
- // Used for remove enclosing <pre> tag's (if occurs)
19
- const preTagRegexp: RegExp = /^<pre.*?>(.*)<\/pre>$/is;
20
-
21
18
  export const LIGHT = "light";
22
19
  export const DARK = "dark";
23
20
  export const EVENT_NAME = "dx-codeblock-theme";
@@ -87,12 +84,7 @@ export default class CodeBlock extends LightningElement {
87
84
  set codeBlock(value: string) {
88
85
  this._codeBlockRendered = false;
89
86
  this._isCbHeightCalculated = false;
90
- let match;
91
- this._codeBlock = (
92
- (match = preTagRegexp.exec(value.trim())) === null
93
- ? value.trim()
94
- : match[1]
95
- ).trim();
87
+ this._codeBlock = value.trim();
96
88
  }
97
89
 
98
90
  @api