Skip to content

Commit

Permalink
feat:流水线变量语法支持两种风格 TencentBlueKing#10576
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 21034
  • Loading branch information
useryuyu committed Oct 17, 2024
1 parent c28aa44 commit bf127bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
content: $t('noDraft'),
disabled: item.showTooltips
}"
v-perm="item.vPerm"
v-perm="item.vPerm ? item.vPerm : {}"
>
<template v-if="item.label">
{{ item.label }}
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/devops-pipeline/src/utils/customRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ const customeRules = {
},
paramsIdRule: {
validate: function (value, args) {
return /^[a-z][a-z\d_]+$/gi.test(value)
return /^[a-z][a-z\d_]*$/gi.test(value)
}
},
buildNumRule: {
Expand Down

0 comments on commit bf127bf

Please sign in to comment.