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) |