Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Fix incorrect regular expression. #771

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/arduino/board.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function parseBoardDescriptor(boardDescriptor: string, plat: IPlatform):
const boardLineRegex = /([^\.]+)\.(\S+)=(.+)/;

const result = new Map<string, IBoard>();
const lines = boardDescriptor.split(/[\r|\r\n|\n]/);
const lines = boardDescriptor.split(/\r?\n/);
const menuMap = new Map<string, string>();

lines.forEach((line) => {
Expand Down