Skip to content

Commit

Permalink
Merge pull request #9 from Perevedko/patch-1
Browse files Browse the repository at this point in the history
Update verbal_expressions.py
  • Loading branch information
v2e4lisp committed Aug 13, 2013
2 parents d243cdf + 95aaea1 commit adfe682
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions verbalexpressions/verbal_expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def any(self, value):
any_of = any

def line_break(self):
return self.add("(\\n|(\\r\\n))")
return self.add(r"(\n|(\r\n))")
br = line_break

@re_escape
Expand All @@ -89,10 +89,10 @@ def range(self, *args):
return self.add("([" + ''.join(['-'.join(i) for i in from_tos]) + "])")

def tab(self):
return self.add('\\t')
return self.add(r'\t')

def word(self):
return self.add("(\\w+)")
return self.add(r"(\w+)")

def OR(self, value=None):
''' `or` is a python keyword so we use `OR` instead. '''
Expand Down

0 comments on commit adfe682

Please sign in to comment.