Skip to content

Commit 1d29352

Browse files
committed
improve readable for regex
1 parent b28f534 commit 1d29352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/BitmapFontImporter/Editor/FntParse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ 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+
pattern = new Regex(@"\S+="".*?""|\S+");
111111
string[] lines = content.Split(new char[] { '\r', '\n' }, StringSplitOptions.RemoveEmptyEntries);
112112
ReadTextInfo(ref lines[0]);
113113
ReadTextCommon(ref lines[1]);

0 commit comments

Comments
 (0)