Skip to content

Commit

Permalink
bugfix: 文件上传设置的允许范围可以填入空格 TencentBlueKing#1539
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Nov 29, 2022
1 parent 7da8972 commit 4f66f54
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@
</div>
</template>
<script>
import _ from 'lodash';

import GlobalSettingService from '@service/global-setting';
import I18n from '@/i18n';

Expand All @@ -106,7 +108,7 @@
const ruleMap = [];
suffixList.forEach((rule) => {
// . 开头,后面跟上不超过24个英文字符
if (rule.length > 25) {
if (!_.trim(rule) || rule.length > 25) {
lengthStack.push(rule);
return;
}
Expand Down

0 comments on commit 4f66f54

Please sign in to comment.