This commit is contained in:
szrpf
2023-05-27 22:46:05 +08:00
parent 2a9cda65a4
commit ff57cedfd7
4 changed files with 8 additions and 8 deletions

View File

@@ -96,7 +96,7 @@ export default class DataBoard extends cc.Component {
private set customLabelString(value: string) {
this._customLabelString = value;
this.customLabelStringSplit = value
.replace(/,|/g, '_~_').replace(/:|/g, '_!_').replace(/ |\t/g, '_@_')
.replace(/,|/g, '_~_').replace(/:|/g, '_!_').replace(/ /g, '_@_')
.replace(/_*\n_*/g, '_\n_').split('_');
}
@property