summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lepus.uberspace.de>2014-10-26 05:45:18 +0100
committerhut <hut@lepus.uberspace.de>2014-10-26 05:45:18 +0100
commit9cee6325c3013fe100d8d7209aad419d7825e0b7 (patch)
treea834687618f8b2d778c7a7d3c2b700b2a7c5114a
parentfc138baee9118076e8181096246a484f3611456c (diff)
downloadranger-9cee6325c3013fe100d8d7209aad419d7825e0b7.tar.gz
core.actions: fixed _MacroTemplate.idpattern
Thanks to trupanka for pointing out the problem at
https://github.com/hut/ranger/issues/175
-rw-r--r--ranger/core/actions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py
index f6c41447..92d626c0 100644
--- a/ranger/core/actions.py
+++ b/ranger/core/actions.py
@@ -33,6 +33,7 @@ MACRO_FAIL = "<\x01\x01MACRO_HAS_NO_VALUE\x01\01>"
 class _MacroTemplate(string.Template):
     """A template for substituting macros in commands"""
     delimiter = ranger.MACRO_DELIMITER
+    idpattern = r"[_a-z0-9]*"
 
 class Actions(FileManagerAware, EnvironmentAware, SettingsAware):
     # --------------------------
126' href='#n126'>126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228