~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to grep.py

  • Committer: Parth Malwankar
  • Date: 2010-03-24 16:26:21 UTC
  • mto: (0.44.2 grep) (6531.3.1 merge-grep)
  • mto: This revision was merged to the branch mainline in revision 6555.
  • Revision ID: parth.malwankar@gmail.com-20100324162621-bt72kursiqxo9f0i
added underscore to --fixed-string whitelist

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
    return patternc
120
120
 
121
121
def is_fixed_string(s):
122
 
    if re.match("^([A-Za-z0-9]|\s)*$", s):
 
122
    if re.match("^([A-Za-z0-9_]|\s)*$", s):
123
123
        return True
124
124
    return False
125
125