fix(arduino-cli): parse options with any character as option name

This commit is contained in:
Kirill Shumilov
2018-10-18 16:44:20 +03:00
parent 1c079733ac
commit 12873d32d6

View File

@@ -45,9 +45,9 @@ export const getLines = R.compose(
const menuRegExp = /^menu\./;
const optionNameRegExp = /^menu\.([a-zA-Z0-9_]+)=([a-zA-Z0-9-_ ]+)$/;
const optionNameRegExp = /^menu\.([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)/;