From a1153f201290b3c1c95b3ec91fefd9d97e6509f1 Mon Sep 17 00:00:00 2001 From: Steve Dekorte Date: Sat, 7 Jan 2012 16:56:56 -0800 Subject: [PATCH] fix for System getOptions "arg beginsWithSeq("--") isNil" bug #139 --- addons/Regex/io/Regex.io | 4 ++-- libs/iovm/io/System.io | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/Regex/io/Regex.io b/addons/Regex/io/Regex.io index cc3b70028..890e8dab5 100644 --- a/addons/Regex/io/Regex.io +++ b/addons/Regex/io/Regex.io @@ -9,13 +9,13 @@ using the PCRE library by Philip Hazel.

	
 Io> re := "is.*a" asRegex
 Io> "This is a test. This is also a test." \
-    allMatchesOfRegex(" is[^.]*a") replaceAllWith(" is not a")
+    matchesOfRegex(" is[^.]*a") replaceAllWith(" is not a")
 ==> "This is not a test. This is not a test.
 

Example 2

	
-Io> "11aabb" allMatchesOfRegex("aa*")
+Io> "11aabb" matchesOfRegex("aa*")
 ==> list("a", "a")
 
 Io> re := "(wom)(bat)" asRegex
diff --git a/libs/iovm/io/System.io b/libs/iovm/io/System.io
index cb9476dd3..f0b02f2fd 100644
--- a/libs/iovm/io/System.io
+++ b/libs/iovm/io/System.io
@@ -33,7 +33,7 @@ System do(
 		optsNoKey := List clone
 
 		arguments foreach(i, arg,
-			if(arg beginsWithSeq("--") isNil,
+			if(arg beginsWithSeq("--") isFalse,
 				optsNoKey append(arg)
 				continue
 			)