Handle [%]

This commit is contained in:
Wang Yuan 2021-10-25 11:42:44 +08:00 committed by GitHub
parent 3f5a1ecf1d
commit bfc0160442
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1530,9 +1530,10 @@ void Path::makePath(const String& path, const InArgs& in) {
while (current != end) {
if (*current == '[') {
++current;
if (*current == '%')
if (*current == '%') {
addPathInArg(path, in, itInArg, PathArgument::kindIndex);
else {
++current;
} else {
ArrayIndex index = 0;
for (; current != end && *current >= '0' && *current <= '9'; ++current)
index = index * 10 + ArrayIndex(*current - '0');