Skip to content

Commit a8e4e0c

Browse files
committed
Escape asterisks in error message content for notification display
1 parent 93d27ea commit a8e4e0c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arduino-ide-extension/src/browser/contributions/contribution.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ export abstract class CoreServiceContribution extends SketchContribution {
280280
'No board selected. Please select your Arduino board from the Tools > Board menu.'
281281
);
282282
}
283+
message = message.replace(/[*]/g, '\\*');
283284
const copyAction = nls.localize(
284285
'arduino/coreContribution/copyError',
285286
'Copy error messages'

0 commit comments

Comments
 (0)