mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-14 10:06:58 -04:00
Added the magic flag to regexes to say whether it is useful for magic to use
This commit is contained in:
parent
4d9fb7ef58
commit
8df9d6fcf6
43 changed files with 142 additions and 32 deletions
|
@ -38,9 +38,10 @@ class ParseX509Certificate extends Operation {
|
|||
];
|
||||
this.checks = new magicObject([
|
||||
{
|
||||
"match": "^-+BEGIN CERTIFICATE-+\\r?\\n[\\da-z+/\\n\\r]+-+END CERTIFICATE-+\\r?\\n?$",
|
||||
"flags": "i",
|
||||
"args": [
|
||||
match: "^-+BEGIN CERTIFICATE-+\\r?\\n[\\da-z+/\\n\\r]+-+END CERTIFICATE-+\\r?\\n?$",
|
||||
flags: "i",
|
||||
magic: true,
|
||||
args: [
|
||||
"PEM"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue