GUI editor to tame mod_security rules

⌈⌋ ⎇ branch:  modseccfg


Check-in [12587995cd]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:flex decription tag detection
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 12587995cd176d93e811516bf6150a6efcebf27d6a4ce572ff46b316e83fd20a
User & Date: mario 2022-10-21 22:50:09
Context
2022-10-21
22:50
comment fixes check-in: a7de0f8780 user: mario tags: trunk
22:50
flex decription tag detection check-in: 12587995cd user: mario tags: trunk
22:49
add msc_pyparser option dependency `pip install modseccfg[all]` check-in: cf99bb8fa7 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to html2mallard/html2mallard.py.

50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

# regex all the way
extract = {
    # meta info
    "mkdocs_page_name = \"(.*?)\";": "title",
    "<title>(?:\w+:\s)?(.+?)</title>": "title",
    "<(?:h1|h2)>([^<]+)</(?:h1|h2)>": "title",
    '<meta name="description" content="(.+?)"[^>]*>': "desc",
    '<a class="reference internal" href="(\w+).html">.+?</a>': "links",
    '<a class="trail" href="(\w+).html(#.+?)?" title=".+?">': "links",
    # flags
    '(<.+>)': "is_html",
    '(mkdocs)': "is_mkdocs",
    'data-target="[#.]navbar-(collapse)"': "is_material",
    '(fossil|timeline)': "is_fossil",







|







50
51
52
53
54
55
56
57
58
59
60
61
62
63
64

# regex all the way
extract = {
    # meta info
    "mkdocs_page_name = \"(.*?)\";": "title",
    "<title>(?:\w+:\s)?(.+?)</title>": "title",
    "<(?:h1|h2)>([^<]+)</(?:h1|h2)>": "title",
    '''<meta\s+name=["']?description["']?\s+content=["'](.+?)["'][^>]*>''': "desc",
    '<a class="reference internal" href="(\w+).html">.+?</a>': "links",
    '<a class="trail" href="(\w+).html(#.+?)?" title=".+?">': "links",
    # flags
    '(<.+>)': "is_html",
    '(mkdocs)': "is_mkdocs",
    'data-target="[#.]navbar-(collapse)"': "is_material",
    '(fossil|timeline)': "is_fossil",