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())); },