aboutsummaryrefslogtreecommitdiffhomepage
path: root/parse_util.cpp
diff options
context:
space:
mode:
authorGravatar maxfl <gmaxfl@gmail.com>2012-07-02 11:19:30 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-05 14:17:25 -0700
commitea4b37d5c57a5f7377a605ea87411ca1e033f61a (patch)
treea291eb0add76a86973886ad3a8f0223b2f6a7dae /parse_util.cpp
parenta1319cb8aa4b0942c2956ae0f202e918066ae67a (diff)
Fixed case behaviour
* case no properly handles -h and --help flags, i.e. treats it as pattern * fixed case escaping: The following expressions now work correctly: switch '*' echo '*' echo Match any string end switch '*' echo '\*' echo Match asterix end switch '\\' echo '\\\\' echo Match slash end The same for '?' sign
Diffstat (limited to 'parse_util.cpp')
-rw-r--r--parse_util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse_util.cpp b/parse_util.cpp
index eed4b260..c9c7f548 100644
--- a/parse_util.cpp
+++ b/parse_util.cpp
@@ -665,7 +665,6 @@ wchar_t *parse_util_unescape_wildcards( const wchar_t *str )
in++;
*(out++)=*in;
}
- *(out++)=*in;
break;
}
@@ -688,6 +687,7 @@ wchar_t *parse_util_unescape_wildcards( const wchar_t *str )
}
}
}
+ *out = *in;
return unescaped;
}