From be306b1178907ee74d7b4e792ec467f91b0f54ee Mon Sep 17 00:00:00 2001
From: Daniel Hahler <git@thequod.de>
Date: Thu, 18 Dec 2014 20:36:54 +0100
Subject: [PATCH] varstash: fix pattern in stash

---
 lib/varstash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/varstash b/lib/varstash
index d5016c1..eae62b3 100644
--- a/lib/varstash
+++ b/lib/varstash
@@ -175,9 +175,9 @@ function stash() {
         local vartype="$(declare -p $stash_which 2>/dev/null)"
         if [[ -n $vartype ]]; then
             if [[ -n $ZSH_VERSION ]]; then
-                local pattern="^typeset"
+                local pattern="typeset"
             else
-                local pattern="^declare"
+                local pattern="declare"
             fi
             if [[ $vartype == $pattern" -a"* ]]; then
                 # varible is an array
-- 
2.51.0