Skip to content

Commit

Permalink
fix(arduino-cli): parse options with any character as option name
Browse files Browse the repository at this point in the history
  • Loading branch information
brusherru committed Oct 18, 2018
1 parent af1d386 commit b3d9010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/arduino-cli/src/optionParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const menuRegExp = /^menu\./;

const optionNameRegExp = /^menu\.([a-zA-Z0-9_]+)=([a-zA-Z0-9-_ ]+)$/;

const boardOptionRegExp = /^([a-zA-Z0-9_]+)\.menu\.([a-zA-Z0-9_]+)\.([a-zA-Z0-9_]+)=([a-zA-Z0-9-_ ()]+)$/;
const boardOptionRegExp = /^([a-zA-Z0-9_]+)\.menu\.([a-zA-Z0-9_]+)\.([a-zA-Z0-9_]+)=(.+)$/;

const osRegExp = /(linux|macosx|windows)/;

Expand Down

0 comments on commit b3d9010

Please sign in to comment.