On 02/05/2016 01:56 AM, Alex Bennée wrote:
+    if (g_strrstr(filename, "%d")) {
+        /* if we are going to format this we'd better validate first */
+        if (g_regex_match_simple("^[^%]+%d[^%]+$", filename, 0, 0)) {

Why g_strrstr instead of strstr? There should be only one, so why look for the last?


r~

Reply via email to