Skip to content

Commit

Permalink
Fix typo in_span?
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronH committed Aug 2, 2010
1 parent 8d4d20c commit c2ea1d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/chronic/chronic.rb
Expand Up @@ -39,7 +39,9 @@ class << self
# will be made, and the first matching instance of that time will
# be used.
def parse(text, specified_options = {})
@text = text.gsub /,/, ' '
@text = text

@text.gsub(/,/, ' ') if @text.is_a?(String)

# get options and set defaults if necessary
default_options = {:context => :future,
Expand Down
2 changes: 1 addition & 1 deletion lib/chronic/handlers.rb
Expand Up @@ -402,7 +402,7 @@ def find_within(tags, span, pointer) #:nodoc:
head.start = pointer == :future ? span.begin : span.end
h = head.this(:none)

if in_span?(span, h.begin) || in_span(span, h.end)
if in_span?(span, h.begin) || in_span?(span, h.end)
return find_within(rest, h, pointer)
else
return nil
Expand Down

0 comments on commit c2ea1d5

Please sign in to comment.