grc icon indicating copy to clipboard operation
grc copied to clipboard

work on whois regex

Open chn42 opened this issue 1 year ago • 0 comments

to also work on fields with a - in it

for example the template for RIPE aut-num object. fields like mp-import, which aren't catched by something else like regexp=(Registry )?[Aa]dmin([\w\s\S])*:, just have default color

 aut-num:        [mandatory]  [single]     [primary/lookup key]
 as-name:        [mandatory]  [single]     [ ]
 descr:          [optional]   [multiple]   [ ]
 member-of:      [optional]   [multiple]   [inverse key]
 import-via:     [optional]   [multiple]   [ ]
 import:         [optional]   [multiple]   [ ]
 mp-import:      [optional]   [multiple]   [ ]
 export-via:     [optional]   [multiple]   [ ]
 export:         [optional]   [multiple]   [ ]
 mp-export:      [optional]   [multiple]   [ ]
 default:        [optional]   [multiple]   [ ]
 mp-default:     [optional]   [multiple]   [ ]
 remarks:        [optional]   [multiple]   [ ]
 org:            [optional]   [single]     [inverse key]
 sponsoring-org: [optional]   [single]     [inverse key]
 admin-c:        [mandatory]  [multiple]   [inverse key]
 tech-c:         [mandatory]  [multiple]   [inverse key]
 abuse-c:        [optional]   [single]     [inverse key]
 status:         [generated]  [single]     [ ]
 notify:         [optional]   [multiple]   [inverse key]
 mnt-by:         [mandatory]  [multiple]   [inverse key]
 created:        [generated]  [single]     [ ]
 last-modified:  [generated]  [single]     [ ]
 source:         [mandatory]  [single]     [ ]

also within for example this object type there might be lines after mp-import starting with \s<IPv6>, therefor added the check for end-of-line or \s

also added support for IPv4 and IPv6 copied from conf.ip

chn42 avatar Sep 18 '24 10:09 chn42