Skip to content

Commit 480e71f

Browse files
committed
avoid contractions
1 parent 83ca149 commit 480e71f

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

java/ql/src/Security/CWE/CWE-730/PolynomialReDoS.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Pattern.compile("^\\s+|\\s+$").matcher(text).replaceAll("") // BAD</sample>
103103

104104
<example>
105105
<p>
106-
Sometimes it's unclear how a regular expression can be rewritten to
106+
Sometimes it is unclear how a regular expression can be rewritten to
107107
avoid the problem. In such cases, it often suffices to limit the
108108
length of the input string. For instance, the following complicated
109109
regular expression is used to match numbers, and on some non-number
@@ -114,7 +114,7 @@ Pattern.compile("^\\s+|\\s+$").matcher(text).replaceAll("") // BAD</sample>
114114
Pattern.matches("^(\\+|-)?(\\d+|(\\d*\\.\\d*))?(E|e)?([-+])?(\\d+)?$", str); </sample>
115115

116116
<p>
117-
It's not immediately obvious how to rewrite this regular expression
117+
It is not immediately obvious how to rewrite this regular expression
118118
to avoid the problem. However, it might be fine to limit the length
119119
to 1000 characters, which will always finish in a reasonable amount
120120
of time.

javascript/ql/src/Performance/PolynomialReDoS.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ text.replace(/^\s+|\s+$/g, ''); // BAD</sample>
103103

104104
<example>
105105
<p>
106-
Sometimes it's unclear how a regular expression can be rewritten to
106+
Sometimes it is unclear how a regular expression can be rewritten to
107107
avoid the problem. In such cases, it often suffices to limit the
108108
length of the input string. For instance, the following complicated
109109
regular expression is used to match numbers, and on some non-number
@@ -114,7 +114,7 @@ text.replace(/^\s+|\s+$/g, ''); // BAD</sample>
114114
/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/.test(str) // BAD</sample>
115115

116116
<p>
117-
It's not immediately obvious how to rewrite this regular expression
117+
It is not immediately obvious how to rewrite this regular expression
118118
to avoid the problem. However, it might be fine to limit the length
119119
to 1000 characters, which will always finish in a reasonable amount
120120
of time.

python/ql/src/Security/CWE-730/PolynomialReDoS.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ re.sub(r"^\s+|\s+$", "", text) # BAD</sample>
103103

104104
<example>
105105
<p>
106-
Sometimes it's unclear how a regular expression can be rewritten to
106+
Sometimes it is unclear how a regular expression can be rewritten to
107107
avoid the problem. In such cases, it often suffices to limit the
108108
length of the input string. For instance, the following complicated
109109
regular expression is used to match numbers, and on some non-number
@@ -114,7 +114,7 @@ re.sub(r"^\s+|\s+$", "", text) # BAD</sample>
114114
match = re.search(r'^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$', str) </sample>
115115

116116
<p>
117-
It's not immediately obvious how to rewrite this regular expression
117+
It is not immediately obvious how to rewrite this regular expression
118118
to avoid the problem. However, it might be fine to limit the length
119119
to 1000 characters, which will always finish in a reasonable amount
120120
of time.

ruby/ql/src/queries/security/cwe-1333/PolynomialReDoS.qhelp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ text.gsub!(/^\s+|\s+$/, '') # BAD</sample>
108108

109109
<example>
110110
<p>
111-
Sometimes it's unclear how a regular expression can be rewritten to
111+
Sometimes it is unclear how a regular expression can be rewritten to
112112
avoid the problem. In such cases, it often suffices to limit the
113113
length of the input string. For instance, the following complicated
114114
regular expression is used to match numbers, and on some non-number
@@ -119,7 +119,7 @@ text.gsub!(/^\s+|\s+$/, '') # BAD</sample>
119119
is_matching = /^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/.match?(str)</sample>
120120

121121
<p>
122-
It's not immediately obvious how to rewrite this regular expression
122+
It is not immediately obvious how to rewrite this regular expression
123123
to avoid the problem. However, it might be fine to limit the length
124124
to 1000 characters, which will always finish in a reasonable amount
125125
of time.

0 commit comments

Comments
 (0)