Skip to content

Commit 604db62

Browse files
committed
2 parents f447e3a + fbd2663 commit 604db62

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Assets/BitmapFontImporter/Editor/FntParse.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,12 @@ private static int ToInt(XmlNode node, string name)
107107
private Regex pattern;
108108
public void DoTextParse(ref string content)
109109
{
110-
pattern = new Regex(@"\S+="".*?""|\S+");
110+
// letter=" " // \S+=".+?"
111+
// letter="x" // \S+=".+?"
112+
// letter=""" // \S+=".+?"
113+
// letter="" // \S+
114+
// char // \S+
115+
pattern = new Regex(@"\S+="".+?""|\S+");
111116
string[] lines = content.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
112117
ReadTextInfo(ref lines[0]);
113118
ReadTextCommon(ref lines[1]);

0 commit comments

Comments
 (0)