Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(478)

Unified Diff: build/android/gyp/javac.py

Issue 2079673002: Fix a regex in javac.py. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/gyp/javac.py
diff --git a/build/android/gyp/javac.py b/build/android/gyp/javac.py
index 3cce16dfb5b24caa3c9e0172be8aee89e9c9fa32..6c91424710039d58c70f0f821670b0c9e01cfcfc 100755
--- a/build/android/gyp/javac.py
+++ b/build/android/gyp/javac.py
@@ -83,7 +83,7 @@ def _ExtractClassFiles(jar_path, dest_dir, java_files):
def extract_predicate(path):
if not path.endswith('.class'):
return False
- path_without_suffix = re.sub(r'(?:\$|\.)[^/]+class$', '', path)
+ path_without_suffix = re.sub(r'(?:\$|\.)[^/]*class$', '', path)
partial_java_path = path_without_suffix + '.java'
return not any(p.endswith(partial_java_path) for p in java_files)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698