Skip to content

Commit

Permalink
fix for System getOptions "arg beginsWithSeq("--") isNil" bug IoLangu…
Browse files Browse the repository at this point in the history
  • Loading branch information
stevedekorte committed Jan 8, 2012
1 parent a361b85 commit a1153f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/Regex/io/Regex.io
Expand Up @@ -9,13 +9,13 @@ using the <a href=http://www.pcre.org/>PCRE</a> library by Philip Hazel.</p>
<pre>
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.
</pre>
<h4>Example 2</h4>
<pre>
Io> "11aabb" allMatchesOfRegex("aa*")
Io> "11aabb" matchesOfRegex("aa*")
==> list("a", "a")
Io> re := "(wom)(bat)" asRegex
Expand Down
2 changes: 1 addition & 1 deletion libs/iovm/io/System.io
Expand Up @@ -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
)
Expand Down

0 comments on commit a1153f2

Please sign in to comment.