File tree Expand file tree Collapse file tree
javascript/ql/lib/semmle/javascript/security/regexp
java/ql/lib/semmle/code/java/security/regexp
python/ql/lib/semmle/python/security/regexp
ruby/ql/lib/codeql/ruby/security/regexp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -499,18 +499,18 @@ private module CharacterClasses {
499499 /** Gets a representative for all char classes that match the same chars as `c`. */
500500 CharacterClass normalize ( CharacterClass c ) {
501501 exists ( string normalization |
502- normalization = getMormalizationString ( c ) and
502+ normalization = getNormalizationString ( c ) and
503503 result =
504504 min ( CharacterClass cc , string raw |
505- getMormalizationString ( cc ) = normalization and cc = CharClass ( raw )
505+ getNormalizationString ( cc ) = normalization and cc = CharClass ( raw )
506506 |
507507 cc order by raw
508508 )
509509 )
510510 }
511511
512512 /** Gets a string representing all the chars matched by `c` */
513- private string getMormalizationString ( CharacterClass c ) {
513+ private string getNormalizationString ( CharacterClass c ) {
514514 ( c instanceof PositiveCharacterClass or c instanceof PositiveCharacterClassEscape ) and
515515 result = concat ( string char | c .matches ( char ) and char = CharacterClasses:: getARelevantChar ( ) )
516516 or
Original file line number Diff line number Diff line change @@ -499,18 +499,18 @@ private module CharacterClasses {
499499 /** Gets a representative for all char classes that match the same chars as `c`. */
500500 CharacterClass normalize ( CharacterClass c ) {
501501 exists ( string normalization |
502- normalization = getMormalizationString ( c ) and
502+ normalization = getNormalizationString ( c ) and
503503 result =
504504 min ( CharacterClass cc , string raw |
505- getMormalizationString ( cc ) = normalization and cc = CharClass ( raw )
505+ getNormalizationString ( cc ) = normalization and cc = CharClass ( raw )
506506 |
507507 cc order by raw
508508 )
509509 )
510510 }
511511
512512 /** Gets a string representing all the chars matched by `c` */
513- private string getMormalizationString ( CharacterClass c ) {
513+ private string getNormalizationString ( CharacterClass c ) {
514514 ( c instanceof PositiveCharacterClass or c instanceof PositiveCharacterClassEscape ) and
515515 result = concat ( string char | c .matches ( char ) and char = CharacterClasses:: getARelevantChar ( ) )
516516 or
Original file line number Diff line number Diff line change @@ -499,18 +499,18 @@ private module CharacterClasses {
499499 /** Gets a representative for all char classes that match the same chars as `c`. */
500500 CharacterClass normalize ( CharacterClass c ) {
501501 exists ( string normalization |
502- normalization = getMormalizationString ( c ) and
502+ normalization = getNormalizationString ( c ) and
503503 result =
504504 min ( CharacterClass cc , string raw |
505- getMormalizationString ( cc ) = normalization and cc = CharClass ( raw )
505+ getNormalizationString ( cc ) = normalization and cc = CharClass ( raw )
506506 |
507507 cc order by raw
508508 )
509509 )
510510 }
511511
512512 /** Gets a string representing all the chars matched by `c` */
513- private string getMormalizationString ( CharacterClass c ) {
513+ private string getNormalizationString ( CharacterClass c ) {
514514 ( c instanceof PositiveCharacterClass or c instanceof PositiveCharacterClassEscape ) and
515515 result = concat ( string char | c .matches ( char ) and char = CharacterClasses:: getARelevantChar ( ) )
516516 or
Original file line number Diff line number Diff line change @@ -499,18 +499,18 @@ private module CharacterClasses {
499499 /** Gets a representative for all char classes that match the same chars as `c`. */
500500 CharacterClass normalize ( CharacterClass c ) {
501501 exists ( string normalization |
502- normalization = getMormalizationString ( c ) and
502+ normalization = getNormalizationString ( c ) and
503503 result =
504504 min ( CharacterClass cc , string raw |
505- getMormalizationString ( cc ) = normalization and cc = CharClass ( raw )
505+ getNormalizationString ( cc ) = normalization and cc = CharClass ( raw )
506506 |
507507 cc order by raw
508508 )
509509 )
510510 }
511511
512512 /** Gets a string representing all the chars matched by `c` */
513- private string getMormalizationString ( CharacterClass c ) {
513+ private string getNormalizationString ( CharacterClass c ) {
514514 ( c instanceof PositiveCharacterClass or c instanceof PositiveCharacterClassEscape ) and
515515 result = concat ( string char | c .matches ( char ) and char = CharacterClasses:: getARelevantChar ( ) )
516516 or
You can’t perform that action at this time.
0 commit comments