From 2d24401c8f25941c192ab9a202b1676a97e5548f Mon Sep 17 00:00:00 2001 From: Haitao Yue Date: Thu, 30 Jul 2020 21:09:32 +0800 Subject: [PATCH] fix: fix .config file content can not load for kconfig fix #172 Signed-off-by: Haitao Yue --- .gitignore | 2 ++ kconfig-lib/kconfiglib.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index e57e718bd..4fdadcbc6 100644 --- a/.gitignore +++ b/.gitignore @@ -241,3 +241,5 @@ screenshot src/dashboard/dist src/dashboard/functions src/dashboard/lambda/mock/index.js +.config +.config.old diff --git a/kconfig-lib/kconfiglib.py b/kconfig-lib/kconfiglib.py index 99132136b..4bb7eda0a 100644 --- a/kconfig-lib/kconfiglib.py +++ b/kconfig-lib/kconfiglib.py @@ -7247,4 +7247,4 @@ def _re_search(regex): # A valid right-hand side for an assignment to a string symbol in a .config # file, including escaped characters. Extracts the contents. -_conf_string_match = _re_match(r'"((?:[^\\"]|\\.)*)"') +_conf_string_match = _re_match(r'((?:[^\\"]|\\.)*)')