Skip to content

Commit ea01840

Browse files
authored
Merge pull request #120 from martenbohlin/allow-subproject-starting-with-capital-letter
Allow sub-project to start with capital letters.
2 parents 1c731fe + b307082 commit ea01840

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ __gradle-generate-tasks-cache() {
101101
local gradle_all_tasks="" root_tasks="" subproject_tasks="" output_line
102102
local -a match
103103
for output_line in ${(f)"$(printf "%s\n" "${gradle_tasks_output[@]}")"}; do
104-
if [[ $output_line =~ ^([[:lower:]][[:alnum:][:punct:]]*)([[:space:]]-[[:space:]]([[:print:]]*))? ]]; then
104+
if [[ $output_line =~ ^([[:alpha:]][[:alnum:][:punct:]]*)([[:space:]]-[[:space:]]([[:print:]]*))? ]]; then
105105
local task_name="${match[1]}"
106106
local task_description="${match[3]}"
107107
# Completion for subproject tasks with ':' prefix

gradle-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ __gradle-generate-tasks-cache() {
289289
local -a root_tasks=()
290290
local -a subproject_tasks=()
291291
for output_line in ${gradle_tasks_output}; do
292-
if [[ "$output_line" =~ ^([[:lower:]][[:alnum:][:punct:]]*)([[:space:]]-[[:space:]]([[:print:]]*))? ]]; then
292+
if [[ "$output_line" =~ ^([[:alpha:]][[:alnum:][:punct:]]*)([[:space:]]-[[:space:]]([[:print:]]*))? ]]; then
293293
task_name="${BASH_REMATCH[1]}"
294294
task_description="${BASH_REMATCH[3]}"
295295
gradle_all_tasks+=( "$task_name - $task_description" )

0 commit comments

Comments
 (0)