From 986b543afd5a89fa40accb486b7d6dfac9ddf056 Mon Sep 17 00:00:00 2001 From: wfnuser Date: Mon, 27 Apr 2020 22:11:50 +0800 Subject: [PATCH] fix: allow empty line in config type preperties --- .../resources/static/console-fe/src/utils/validateContent.js | 1 + 1 file changed, 1 insertion(+) diff --git a/console/src/main/resources/static/console-fe/src/utils/validateContent.js b/console/src/main/resources/static/console-fe/src/utils/validateContent.js index 9cbd94fe2..ad14f6fd0 100644 --- a/console/src/main/resources/static/console-fe/src/utils/validateContent.js +++ b/console/src/main/resources/static/console-fe/src/utils/validateContent.js @@ -53,6 +53,7 @@ export default { return str .replace('\n\r', '\n') .split('\n') + .filter(_str => _str) .every(_str => reg.test(_str.trim())); },