mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
add contributing.md
This commit is contained in:
1 parent
7e81abaf40
commit
feb3b5cecb
6 files changed
+733
-669
No files matched your search
@@ -47,8 +47,8 @@ export default connect(mapStateToProps)(class MessagePadDialogueContentContainer
|
||||
// Is system message
|
||||
try {
|
||||
const data = JSON.parse(msg.content);
|
||||
const str = i18n(data.message).replace(/\{([^{}]+)\}/g, (match, key) => `%substitude%${key}%substitude%`);
|
||||
const arr = str.split('%substitude%');
|
||||
const str = i18n(data.message).replace(/\{([^{}]+)\}/g, (match, key) => `%placeholder%${key}%placeholder%`);
|
||||
const arr = str.split('%placeholder%');
|
||||
data.params = data.params || {};
|
||||
for (let i = 1; i < arr.length; i += 2) {
|
||||
if (arr[i].endsWith(':link')) {
|
||||
|
||||
Reference in new issue
Block a user