Skip to content

Commit

Permalink
fix: trim whitespace (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonrybczak authored May 11, 2023
1 parent 5774e6a commit 457907e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const parseTasksFromGradleFile = (
taskType === 'build' ? '^assemble|^bundle' : '^install',
);
text.split('\n').forEach((line) => {
if (taskRegex.test(line) && /(?!.*?Test)^.*$/.test(line)) {
if (taskRegex.test(line.trim()) && /(?!.*?Test)^.*$/.test(line.trim())) {
const metadata = line.split(' - ');
instalTasks.push({
task: metadata[0],
Expand Down

0 comments on commit 457907e

Please sign in to comment.