Signed-off-by: szrpf <27185709@qq.com>

This commit is contained in:
szrpf
2023-04-22 14:39:57 +08:00
parent 583dfa1645
commit 3fa99bf3ec
13 changed files with 248 additions and 203 deletions

View File

@@ -99,9 +99,7 @@ export default class DataBoard extends cc.Component {
this._customLabelString = value;
this.customLabelStringSplit = value
.replace(/,/g, '_~_').replace(/:/g, '_!_').replace(/ /g, '_@_')
.replace(/([^,])\n/g, '$1_\n').replace(/\n([^,])/g, '\n_$1')
.replace(/([^:])\n/g, '$1_\n').replace(/\n([^:])/g, '\n_$1')
.replace(/([^ ])\n/g, '$1_\n').replace(/\n([^ ])/g, '\n_$1')
.replace(/([^_])\n/g, '$1_\n').replace(/([^_])\n/g, '$1_\n').replace(/\n([^_])/g, '\n_$1')
.split('_');
}
@property