File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
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 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -499,18 +499,18 @@ private module CharacterClasses {
499
499
/** Gets a representative for all char classes that match the same chars as `c`. */
500
500
CharacterClass normalize ( CharacterClass c ) {
501
501
exists ( string normalization |
502
- normalization = getMormalizationString ( c ) and
502
+ normalization = getNormalizationString ( c ) and
503
503
result =
504
504
min ( CharacterClass cc , string raw |
505
- getMormalizationString ( cc ) = normalization and cc = CharClass ( raw )
505
+ getNormalizationString ( cc ) = normalization and cc = CharClass ( raw )
506
506
|
507
507
cc order by raw
508
508
)
509
509
)
510
510
}
511
511
512
512
/** Gets a string representing all the chars matched by `c` */
513
- private string getMormalizationString ( CharacterClass c ) {
513
+ private string getNormalizationString ( CharacterClass c ) {
514
514
( c instanceof PositiveCharacterClass or c instanceof PositiveCharacterClassEscape ) and
515
515
result = concat ( string char | c .matches ( char ) and char = CharacterClasses:: getARelevantChar ( ) )
516
516
or
Original file line number Diff line number Diff line change @@ -499,18 +499,18 @@ private module CharacterClasses {
499
499
/** Gets a representative for all char classes that match the same chars as `c`. */
500
500
CharacterClass normalize ( CharacterClass c ) {
501
501
exists ( string normalization |
502
- normalization = getMormalizationString ( c ) and
502
+ normalization = getNormalizationString ( c ) and
503
503
result =
504
504
min ( CharacterClass cc , string raw |
505
- getMormalizationString ( cc ) = normalization and cc = CharClass ( raw )
505
+ getNormalizationString ( cc ) = normalization and cc = CharClass ( raw )
506
506
|
507
507
cc order by raw
508
508
)
509
509
)
510
510
}
511
511
512
512
/** Gets a string representing all the chars matched by `c` */
513
- private string getMormalizationString ( CharacterClass c ) {
513
+ private string getNormalizationString ( CharacterClass c ) {
514
514
( c instanceof PositiveCharacterClass or c instanceof PositiveCharacterClassEscape ) and
515
515
result = concat ( string char | c .matches ( char ) and char = CharacterClasses:: getARelevantChar ( ) )
516
516
or
Original file line number Diff line number Diff line change @@ -499,18 +499,18 @@ private module CharacterClasses {
499
499
/** Gets a representative for all char classes that match the same chars as `c`. */
500
500
CharacterClass normalize ( CharacterClass c ) {
501
501
exists ( string normalization |
502
- normalization = getMormalizationString ( c ) and
502
+ normalization = getNormalizationString ( c ) and
503
503
result =
504
504
min ( CharacterClass cc , string raw |
505
- getMormalizationString ( cc ) = normalization and cc = CharClass ( raw )
505
+ getNormalizationString ( cc ) = normalization and cc = CharClass ( raw )
506
506
|
507
507
cc order by raw
508
508
)
509
509
)
510
510
}
511
511
512
512
/** Gets a string representing all the chars matched by `c` */
513
- private string getMormalizationString ( CharacterClass c ) {
513
+ private string getNormalizationString ( CharacterClass c ) {
514
514
( c instanceof PositiveCharacterClass or c instanceof PositiveCharacterClassEscape ) and
515
515
result = concat ( string char | c .matches ( char ) and char = CharacterClasses:: getARelevantChar ( ) )
516
516
or
Original file line number Diff line number Diff line change @@ -499,18 +499,18 @@ private module CharacterClasses {
499
499
/** Gets a representative for all char classes that match the same chars as `c`. */
500
500
CharacterClass normalize ( CharacterClass c ) {
501
501
exists ( string normalization |
502
- normalization = getMormalizationString ( c ) and
502
+ normalization = getNormalizationString ( c ) and
503
503
result =
504
504
min ( CharacterClass cc , string raw |
505
- getMormalizationString ( cc ) = normalization and cc = CharClass ( raw )
505
+ getNormalizationString ( cc ) = normalization and cc = CharClass ( raw )
506
506
|
507
507
cc order by raw
508
508
)
509
509
)
510
510
}
511
511
512
512
/** Gets a string representing all the chars matched by `c` */
513
- private string getMormalizationString ( CharacterClass c ) {
513
+ private string getNormalizationString ( CharacterClass c ) {
514
514
( c instanceof PositiveCharacterClass or c instanceof PositiveCharacterClassEscape ) and
515
515
result = concat ( string char | c .matches ( char ) and char = CharacterClasses:: getARelevantChar ( ) )
516
516
or
You can’t perform that action at this time.
0 commit comments