GUI editor to tame mod_security rules

⌈⌋ ⎇ branch:  modseccfg


Artifact [de79c5f157]

Artifact de79c5f157eb284f5adeb7d08d84a782e1ff68f6f19cdd56aa2351e0601a8425:

  • File logfmt1/share/strftime.fmt — part of check-in [36388dbafb] at 2020-12-17 16:37:01 on branch trunk — logfmt1: Add update/nginx support (untested), fmt2md, #doc and #src comments in .fmt/json files, add logopen.names() to list named groups in regex, fix single backlash in rx_sub() (user: mario size: 3848)

{
    "class": "strftime",
    "placeholder": "%\\w",
    "rewrite": {
        "%[EO_^0#\\-]+(\\w)": "%$1"
    },
    "#doc": "https://www.man7.org/linux/man-pages/man3/strftime.3.html",
    "fields": {
        "%a": {
            "id": "tm_wday",
            "rx": "\\w+"
        },
        "%A": {
            "id": "tm_wday",
            "rx": "\\w+"
        },
        "%b": {
            "id": "tm_mon",
            "rx": "\\w+"
        },
        "%B": {
            "id": "tm_mon",
            "rx": "\\w+"
        },
        "%c": {
            "id": "tm_dt",
            "rx": "[-:/.\\w\\d]+"
        },
        "%C": {
            "id": "tm_cent",
            "rx": "\\d\\d"
        },
        "%d": {
            "id": "tm_mday",
            "rx": "\\d\\d"
        },
        "%D": {
            "id": "tm_mdy",
            "rx": "\\d+/\\d+/\\d+"
        },
        "%e": {
            "id": "tm_mday",
            "rx": "[\\d\\s]\\d"
        },
        "%F": {
            "id": "tm_date",
            "rx": "\\d\\d\\d\\d-\\d\\d-\\d\\d"
        },
        "%G": {
            "id": "tm_wyear",
            "rx": "\\d\\d\\d\\d"
        },
        "%g": {
            "id": "tm_wyearnc",
            "rx": "\\d\\d"
        },
        "%h": {
            "id": "tm_mon",
            "rx": "\\w+"
        },
        "%H": {
            "id": "tm_hour",
            "rx": "\\d\\d"
        },
        "%I": {
            "id": "tm_hour",
            "rx": "\\d\\d"
        },
        "%j": {
            "id": "tm_yday",
            "rx": "\\d\\d\\d"
        },
        "%k": {
            "id": "tm_hour",
            "rx": "\\d\\d"
        },
        "%l": {
            "id": "tm_hour",
            "rx": "[\\d\\s]\\d"
        },
        "%m": {
            "id": "tm_mon",
            "rx": "\\d\\d"
        },
        "%M": {
            "id": "tm_min",
            "rx": "\\d\\d"
        },
        "%n": {
            "id": "newline",
            "rx": "\\n"
        },
        "%p": {
            "id": "tm_ampm",
            "rx": "AM|PM"
        },
        "%P": {
            "id": "tm_ampm",
            "rx": "am|pm"
        },
        "%r": {
            "id": "tm_time",
            "rx": "\\d\\d:\\d\\d:\\d\\d [AMPM]{2}"
        },
        "%R": {
            "id": "tm_time",
            "rx": "\\d\\d:\\d\\d"
        },
        "%s": {
            "id": "tm_epoch",
            "rx": "\\d+"
        },
        "%S": {
            "id": "tm_sec",
            "rx": "\\d\\d"
        },
        "%t": {
            "id": "tab",
            "rx": "\\t"
        },
        "%T": {
            "id": "tm_time",
            "rx": "\\d\\d:\\d\\d:\\d\\d"
        },
        "%u": {
            "id": "tm_wday",
            "rx": "[1-7]"
        },
        "%U": {
            "id": "tm_yday",
            "rx": "[0-5]\\d|5[0123]"
        },
        "%V": {
            "id": "tm_yday",
            "rx": "\\d\\d"
        },
        "%w": {
            "id": "tm_wday",
            "rx": "[0-6]"
        },
        "%W": {
            "id": "tm_yday",
            "rx": "\\d\\d"
        },
        "%x": {
            "id": "tm_ldate",
            "rx": "[-./\\d]+"
        },
        "%X": {
            "id": "tm_ltime",
            "rx": "[:.\\d]+"
        },
        "%y": {
            "id": "tm_year",
            "rx": "\\d\\d"
        },
        "%Y": {
            "id": "tm_year",
            "rx": "\\d\\d\\d\\d"
        },
        "%z": {
            "id": "tm_tz",
            "rx": "[-+]\\d\\d\\d\\d"
        },
        "%Z": {
            "id": "tm_tz",
            "rx": "\\w+"
        },
        "%+": {
            "id": "tm_date",
            "rx": "[-/:. \\w\\d]+"
        },
        "%%": {
            "id": "percent",
            "rx": "%"
        }
    },
    "expand": {
        "%(\\w)": "[\\w\\d.]+"
    }
}