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 28, 2022
1 parent 5c42c9e commit 3f55b64
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
</div>
</template>
<script>
import _ from 'lodash';
import GlobalSettingService from '@service/global-setting';
import I18n from '@/i18n';
Expand All @@ -112,7 +114,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 3f55b64

Please sign in to comment.