Skip to content

Commit

Permalink
fix(connection): fix $ symbol invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream authored and Red-Asuka committed Aug 1, 2022
1 parent 4079390 commit c2e2170
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/lang/connections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ export default {
hu: 'Téma szükséges',
},
topicCannotContain: {
zh: '不能向包含通配符 #、+、$ 的 Topic 发布消息',
en: 'You cannot publish the message to a Topic that contains wildcards characters #, +, $',
tr: '#, +, $ karakterlerini içeren bir Konuya mesaj gönderemezsiniz',
ja: 'ワイルドカード文字 #、+、$ を含むトピックにメッセージを送信できません',
hu: '#, +, $ karakterlerini tartalmazó témához nem küldhetsz üzenetet',
zh: '不能向包含通配符 #、+ 的 Topic 发布消息',
en: 'You cannot publish the message to a Topic that contains wildcards characters #, +',
tr: '#, + karakterlerini içeren bir Konuya mesaj gönderemezsiniz',
ja: 'ワイルドカード文字 #、+ を含むトピックにメッセージを送信できません',
hu: '#, + karakterlerini tartalmazó témához nem küldhetsz üzenetet',
},
topicTips: {
zh: '可订阅单个或多个主题,订阅多主题时,请使用逗号分隔(,)',
Expand Down
2 changes: 1 addition & 1 deletion src/views/connections/ConnectionsDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,7 @@ export default class ConnectionsDetail extends Vue {
return false
}
if (topic && (topic.includes('+') || topic.includes('#') || topic.includes('$'))) {
if (topic && (topic.includes('+') || topic.includes('#'))) {
this.$message.warning(this.$tc('connections.topicCannotContain'))
this.stopTimedSend()
return false
Expand Down

0 comments on commit c2e2170

Please sign in to comment.