fix special char escaping so mawk likes it

This commit is contained in:
Kylie McClain committed 2015-04-13 20:42:43 -04:00
1 parent aec4df7d40
commit eda8015880
1 file changed
+1 -1
+1 -1
View File
@@ -163,7 +163,7 @@ _z() {
# use a copy to escape special characters, as we want to return
# the original. yeah, this escaping is awful.
clean_short = short
gsub(/[\(\)\[\]\|]/, "\\\\&", clean_short)
gsub(/\[\(\)\[\]\|\]/, "\\\\&", clean_short)
for( x in matches ) if( matches[x] && x !~ clean_short ) return
return short
}