| | |
| | | using System.Collections; |
| | | using System.Collections.Generic; |
| | | using System.Text.RegularExpressions; |
| | | using Cysharp.Threading.Tasks; |
| | | using UnityEngine; |
| | | |
| | | public class ColorAnalysis : TRichAnalysis<ColorAnalysis> |
| | | { |
| | | public static Regex Color_Start_Regex = new Regex(@"<color=#([0-9a-zA-Z]+)>", RegexOptions.Singleline); |
| | | |
| | | public override string Analysis(string val, bool IsRich) |
| | | public override async UniTask<string> Analysis(string val, bool IsRich) |
| | | { |
| | | return val; |
| | | // if (!Color_Start_Regex.IsMatch(val) || RichTextMgr.Inst.presentRichText == null) |