Browse Source

skillfully avoid Flash8 quirk

Simon Krajewski 12 years ago
parent
commit
01f4ccfc55
1 changed files with 3 additions and 3 deletions
  1. 3 3
      std/StringTools.hx

+ 3 - 3
std/StringTools.hx

@@ -136,7 +136,7 @@ class StringTools {
 		
 		If [end] is null, the result is unspecified.
 		
-		If [end] is the empty String "", the result is true.		
+		If [end] is the empty String "", the result is true.
 	**/
 	public static #if (cs || java) inline #end function endsWith( s : String, end : String ) : Bool {
 		#if java
@@ -161,7 +161,7 @@ class StringTools {
 	**/
 	public static function isSpace( s : String, pos : Int ) : Bool {
 		var c = s.charCodeAt( pos );
-		return (c >= 9 && c <= 13) || c == 32;
+		return (c > 8 && c < 14) || c == 32;
 	}
 
 	/**
@@ -250,7 +250,7 @@ class StringTools {
 			s = c + s;
 		}
 		return s;
-	}	
+	}
 
 	/**
 		Appends [c] to [s] until [s].length is at least [l].