Fix: endswith() implementation actually was a startswith() implementation.
diff --git a/gitflow-common b/gitflow-common
index ad1de80..aa33700 100644
--- a/gitflow-common
+++ b/gitflow-common
@@ -32,7 +32,7 @@
 
 # basic string matching
 startswith() { [ "$1" != "${1#$2}" ]; }
-endswith() { [ "$1" != "${1#$2}" ]; }
+endswith() { [ "$1" != "${1%$2}" ]; }
 
 # convenience functions for checking shFlags flags
 flag() { local FLAG; eval FLAG='$FLAGS_'$1; [ $FLAG -eq $FLAGS_TRUE ]; }