Skip to content

Commit

Permalink
Match a regex not string
Browse files Browse the repository at this point in the history
  • Loading branch information
diedthreetimes committed Jan 4, 2012
1 parent 8dd5af4 commit 8bb0e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/looper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def trap_signals

def is_windows?
processor, platform, *rest = RUBY_PLATFORM.split("-")
platform =~ 'mswin' || platform =~ 'mingw'
platform =~ /mswin/ || platform =~ /mingw/
end

def loopme(run_every = 10)
Expand Down

0 comments on commit 8bb0e0f

Please sign in to comment.