Skip to content
Browse files

small fix to process font-awesome 3.0 .css file

  • Loading branch information...
1 parent 4da4bb0 commit e7ec09db47de91773a33f46833322a65b3c65833 @spouliot committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 convert-font-awesome/convert-font-awesome.cs
View
4 convert-font-awesome/convert-font-awesome.cs
@@ -1,7 +1,7 @@
// Authors:
// Sebastien Pouliot <sebastien@xamarin.com>
//
-// Copyright 2012 Xamarin Inc.
+// Copyright 2012-2013 Xamarin Inc.
//
// Licensed under the GNU LGPL 2 license only (no "later versions")
@@ -56,6 +56,8 @@ public static int Main (string[] args)
if (!line.StartsWith (".icon-", StringComparison.Ordinal))
continue;
int p = line.IndexOf (':');
+ if (p == -1)
+ continue;
string name = line.Substring (1, p - 1).Replace ('-', '_');
p = line.IndexOf ("content: \"\\", StringComparison.Ordinal);
if (p == -1)

0 comments on commit e7ec09d

Please sign in to comment.
Something went wrong with that request. Please try again.