Skip to content

work on whois regex#246

Open
chn42 wants to merge 2 commits intogarabik:masterfrom
chn42:master
Open

work on whois regex#246
chn42 wants to merge 2 commits intogarabik:masterfrom
chn42:master

Conversation

@chn42
Copy link

@chn42 chn42 commented Sep 18, 2024

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, therefor added the check for end-of-line or \s

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

@chn42 chn42 changed the title add - to "field" "bold white" regex work on whois regex Sep 18, 2024
* work with - in field name
* work with IPv6 addresses starting after \s
@chn42 chn42 force-pushed the master branch 2 times, most recently from 77f3607 to 3d3e38e Compare September 18, 2024 12:15
@RENoMafex
Copy link

Merged into my fork, since this repo seems abandoned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants