From 39bf05467ae1c1c86bf0b1a98164c6be11e4f4a2 Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Mon, 17 May 2021 14:43:40 +0700 Subject: [PATCH] tools: fix parsing regex --- tools/tools.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/tools.json b/tools/tools.json index b969b6cbe2..8d72452e4c 100644 --- a/tools/tools.json +++ b/tools/tools.json @@ -17,7 +17,7 @@ "xtensa-esp32-elf-gcc", "--version" ], - "version_regex": "\\(crosstool-NG\\s+(?:crosstool-ng-)?([0-9a-zA-Z\\.\\-]+)\\)\\s*([0-9\\.]+)", + "version_regex": "\\(crosstool-NG\\s+(?:crosstool-ng-)?([0-9a-zA-Z\\.\\-_]+)\\)\\s*([0-9\\.]+)", "version_regex_replace": "\\1-\\2", "versions": [ { @@ -73,7 +73,7 @@ "xtensa-esp32s2-elf-gcc", "--version" ], - "version_regex": "\\(crosstool-NG\\s+(?:crosstool-ng-)?([0-9a-zA-Z\\.\\-]+)\\)\\s*([0-9\\.]+)", + "version_regex": "\\(crosstool-NG\\s+(?:crosstool-ng-)?([0-9a-zA-Z\\.\\-_]+)\\)\\s*([0-9\\.]+)", "version_regex_replace": "\\1-\\2", "versions": [ { @@ -129,7 +129,7 @@ "xtensa-esp32s3-elf-gcc", "--version" ], - "version_regex": "\\(crosstool-NG\\s+(?:crosstool-ng-)?([0-9a-zA-Z\\.\\-]+)\\)\\s*([0-9\\.]+)", + "version_regex": "\\(crosstool-NG\\s+(?:crosstool-ng-)?([0-9a-zA-Z\\.\\-_]+)\\)\\s*([0-9\\.]+)", "version_regex_replace": "\\1-\\2", "versions": [ {