Skip to content

Commit

Permalink
fix typo in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 12, 2015
1 parent d0d09f9 commit 72d0bc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/DOM/CSS.pm
Expand Up @@ -125,10 +125,10 @@ sub _equation {
# "odd"
return [2, 1] if $equation =~ /^\s*odd\s*$/i;

# "4", "+4" and "-4"
# "4", "+4" or "-4"
return [0, $1] if $equation =~ /^\s*((?:\+|-)?\d+)\s*$/;

# "4n", "+4n", "-4n", "4n+1" and "4n-1"
# "4n", "+4n", "-4n", "4n+1" or "4n-1"
return [1, 1]
unless $equation =~ /^\s*((?:\+|-)?(?:\d+)?)?n\s*((?:\+|-)\s*\d+)?\s*$/i;
return [$1 eq '-' ? -1 : $1 eq '' ? 1 : $1, join('', split(' ', $2 // 0))];
Expand Down

0 comments on commit 72d0bc1

Please sign in to comment.