Skip to content

Commit

Permalink
eslint --fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lapo-luchini committed Apr 1, 2024
1 parent 1fcc683 commit ad3d920
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions parseRFC.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ const
],
8017: [ // this RFC uses a lot of currently unsupported syntax
[ /ALGORITHM-IDENTIFIER ::= CLASS[^-]+--/, '--' ],
[ /\n +\S+ +ALGORITHM-IDENTIFIER[^\n]+(\n [^\n]+)+\n [}]/g, '' ],
[ /AlgorithmIdentifier [{] ALGORITHM-IDENTIFIER:InfoObjectSet [}] ::=(\n [^\n]+)+\n [}]/, 'AlgorithmIdentifier ::= ANY'],
[ /\n +\S+ +ALGORITHM-IDENTIFIER[^\n]+(\n {6}[^\n]+)+\n {3}[}]/g, '' ],
[ /AlgorithmIdentifier [{] ALGORITHM-IDENTIFIER:InfoObjectSet [}] ::=(\n {6}[^\n]+)+\n {3}[}]/, 'AlgorithmIdentifier ::= ANY'],
[ /algorithm +id-[^,\n]+,/g, 'algorithm ANY,' ],
[ / (sha1 HashAlgorithm|mgf1SHA1 MaskGenAlgorithm|pSpecifiedEmpty PSourceAlgorithm|rSAES-OAEP-Default-Identifier RSAES-AlgorithmIdentifier|rSASSA-PSS-Default-Identifier RSASSA-AlgorithmIdentifier) ::= [{](\n( [^\n]+)?)+\n [}]/g, '' ],
[ / (sha1 {4}HashAlgorithm|mgf1SHA1 {4}MaskGenAlgorithm|pSpecifiedEmpty {4}PSourceAlgorithm|rSAES-OAEP-Default-Identifier {4}RSAES-AlgorithmIdentifier|rSASSA-PSS-Default-Identifier {4}RSASSA-AlgorithmIdentifier) ::= [{](\n( {6}[^\n]+)?)+\n {3}[}]/g, '' ],
[ / ::= AlgorithmIdentifier [{]\s+[{][^}]+[}]\s+[}]/g, ' ::= AlgorithmIdentifier' ],
[ /OCTET STRING[(]SIZE[(]0..MAX[)][)]/g, 'OCTET STRING' ],
[ /emptyString EncodingParameters ::= ''H/g, '' ],
[ /emptyString {4}EncodingParameters ::= ''H/g, '' ],
[ /[(]CONSTRAINED BY[^)]+[)]/g, '' ],
],
};
Expand Down

0 comments on commit ad3d920

Please sign in to comment.