We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5774e6a commit 457907eCopy full SHA for 457907e
packages/cli-platform-android/src/commands/runAndroid/listAndroidTasks.ts
@@ -17,7 +17,7 @@ export const parseTasksFromGradleFile = (
17
taskType === 'build' ? '^assemble|^bundle' : '^install',
18
);
19
text.split('\n').forEach((line) => {
20
- if (taskRegex.test(line) && /(?!.*?Test)^.*$/.test(line)) {
+ if (taskRegex.test(line.trim()) && /(?!.*?Test)^.*$/.test(line.trim())) {
21
const metadata = line.split(' - ');
22
instalTasks.push({
23
task: metadata[0],
0 commit comments