Skip to content

Commit 457907e

Browse files
fix: trim whitespace (#1933)
1 parent 5774e6a commit 457907e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli-platform-android/src/commands/runAndroid/listAndroidTasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const parseTasksFromGradleFile = (
1717
taskType === 'build' ? '^assemble|^bundle' : '^install',
1818
);
1919
text.split('\n').forEach((line) => {
20-
if (taskRegex.test(line) && /(?!.*?Test)^.*$/.test(line)) {
20+
if (taskRegex.test(line.trim()) && /(?!.*?Test)^.*$/.test(line.trim())) {
2121
const metadata = line.split(' - ');
2222
instalTasks.push({
2323
task: metadata[0],

0 commit comments

Comments
 (0)