lib/branch/name/normalizable.rb in branch-name-3.3.0 vs lib/branch/name/normalizable.rb in branch-name-3.4.0
- old
+ new
@@ -23,10 +23,13 @@
raise unless block_given?
yield e
end
- def project_folder_from(normalized_branch_name)
+ # Returns a project folder name from a normalized branch name.
+ # The location of the folder is not included; that is, the
+ # folder returned is not fully qualified.
+ def project_folder_name_from(normalized_branch_name)
normalize_token normalized_branch_name, PROJECT_FOLDER_REGEX
rescue Branch::Name::OptionError => e
raise unless block_given?
yield e