Commit 429d0473 authored by Andrea Azzarone's avatar Andrea Azzarone 🚴

tracker-extract: Don't assume ']' is not the last character in a region path

Closes: #59
parent ecea929f
......@@ -574,7 +574,9 @@ iterate_simple (const gchar *uri,
*/
} else if (!current_region->type && g_ascii_strcasecmp (propname, "mwg-rs:Type") == 0) {
current_region->type = g_strdup (value);
} else if (!current_region->link_class && !current_region->link_uri &&
}
else if (!current_region->link_class && !current_region->link_uri &&
strrchr (path, ']') != NULL && strrchr (path, ']') + 2 < strrchr (path, '\0') &&
g_str_has_prefix (strrchr (path, ']') + 2, "mwg-rs:Extensions")) {
current_region->link_class = g_strdup (propname);
current_region->link_uri = g_strdup (value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment