Skip to content

Commit 87ee3e0

Browse files
authored
Merge pull request #47177 from Arhell/zh-fix
[zh] Fix mismatched parentheses in cel.md
2 parents 415c863 + 3209c09 commit 87ee3e0

File tree

1 file changed

+4
-4
lines changed
  • content/zh-cn/docs/reference/using-api

1 file changed

+4
-4
lines changed

content/zh-cn/docs/reference/using-api/cel.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ CEL 表达式示例:
9393
| `self.metadata.name == 'singleton'` | Validate that an object's name matches a specific value (making it a singleton) |
9494
| `self.set1.all(e, !(e in self.set2))` | Validate that two listSets are disjoint |
9595
| `self.names.size() == self.details.size() && self.names.all(n, n in self.details)` | Validate the 'details' map is keyed by the items in the 'names' listSet |
96-
| `self.details.all(key, key.matches('^[a-zA-Z]*$')` | Validate the keys of the 'details' map |
97-
| `self.details.all(key, self.details[key].matches('^[a-zA-Z]*$')` | Validate the values of the 'details' map |
96+
| `self.details.all(key, key.matches('^[a-zA-Z]*$'))` | Validate the keys of the 'details' map |
97+
| `self.details.all(key, self.details[key].matches('^[a-zA-Z]*$'))` | Validate the values of the 'details' map |
9898
{{< /table >}}
9999
-->
100100
{{< table caption="CEL 表达式例子和每个表达式的用途" >}}
@@ -111,8 +111,8 @@ CEL 表达式示例:
111111
| `self.metadata.name == 'singleton'` | 验证某对象的名称与特定的值匹配(使其成为一个特例) |
112112
| `self.set1.all(e, !(e in self.set2))` | 验证两个 listSet 不相交 |
113113
| `self.names.size() == self.details.size() && self.names.all(n, n in self.details)` | 验证 'details' 映射是由 'names' listSet 中的各项键入的 |
114-
| `self.details.all(key, key.matches('^[a-zA-Z]*$')` | 验证 'details' 映射的主键 |
115-
| `self.details.all(key, self.details[key].matches('^[a-zA-Z]*$')` | 验证 'details' 映射的值 |
114+
| `self.details.all(key, key.matches('^[a-zA-Z]*$'))` | 验证 'details' 映射的主键 |
115+
| `self.details.all(key, self.details[key].matches('^[a-zA-Z]*$'))` | 验证 'details' 映射的值 |
116116
{{< /table >}}
117117

118118
<!--

0 commit comments

Comments
 (0)