summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 00:39:38 +0000
committercdn@chromium.org <cdn@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 00:39:38 +0000
commit2e3f25012ea1c333a1c43e055147baacff33f013 (patch)
tree73ff4ec9d5de188f7c6e8a4979e6a0827621e899
parente6d62ac36990f2975a5be463a7662928a7611bcb (diff)
downloadchromium_src-2e3f25012ea1c333a1c43e055147baacff33f013.zip
chromium_src-2e3f25012ea1c333a1c43e055147baacff33f013.tar.gz
chromium_src-2e3f25012ea1c333a1c43e055147baacff33f013.tar.bz2
Fixing third_party presubmit rules to recognize \r\n as newlines
BUG=N/A TEST=N/A Review URL: http://codereview.chromium.org/6816003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80727 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--third_party/PRESUBMIT.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/third_party/PRESUBMIT.py b/third_party/PRESUBMIT.py
index 8ccb3d0..e64bd46 100644
--- a/third_party/PRESUBMIT.py
+++ b/third_party/PRESUBMIT.py
@@ -24,16 +24,16 @@ def _CheckThirdPartyReadmesUpdated(input_api, output_api):
return errors
name_pattern = input_api.re.compile(
- r'^Name: [a-zA-Z0-9_\-\.]+$',
+ r'^Name: [a-zA-Z0-9_\-\.]+\r?$',
input_api.re.IGNORECASE | input_api.re.MULTILINE)
shortname_pattern = input_api.re.compile(
- r'^Short Name: [a-zA-Z0-9_\-\.]+$',
+ r'^Short Name: [a-zA-Z0-9_\-\.]+\r?$',
input_api.re.IGNORECASE | input_api.re.MULTILINE)
version_pattern = input_api.re.compile(
- r'^Version: [a-zA-Z0-9_\-\.]+$',
+ r'^Version: [a-zA-Z0-9_\-\.]+\r?$',
input_api.re.IGNORECASE | input_api.re.MULTILINE)
release_pattern = input_api.re.compile(
- r'Included In Release: (yes)|(no)$',
+ r'Included In Release: (yes)|(no)\r?$',
input_api.re.IGNORECASE | input_api.re.MULTILINE)
for file in readmes: