Skip to content

Commit

Permalink
use const for panelClass instead of let
Browse files Browse the repository at this point in the history
  • Loading branch information
denco committed Nov 3, 2023
1 parent 6f2f73e commit a1d2fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/markupParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function parseMarkup(sourceUri: vscode.Uri, sourceText: string) {
let titleStyle = "";
let iconlessFlag = "";
tag = tag.replace(panel_re, function (m0, m1, m2) {
let panelClass = m1;
const panelClass = m1;

let res = `<div class="${panelClass} ${panelClass}-body" $panelStyle>`
const splits = m2.split(/[|:]/);
Expand Down

0 comments on commit a1d2fff

Please sign in to comment.