We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f363fe commit 850a1d5Copy full SHA for 850a1d5
1 file changed
cpp/common/src/codingstandards/cpp/Cpp14Literal.qll
@@ -49,7 +49,7 @@ module Cpp14Literal {
49
* Octal literals must always start with the digit `0`.
50
*/
51
class OctalLiteral extends IntegerLiteral, RecognizedNumericLiteral {
52
- OctalLiteral() { getValueText().regexpMatch("\\s*0[0-7']*[uUlL]*\\s*") }
+ OctalLiteral() { getValueText().regexpMatch("\\s*0[0-7']+[uUlL]*\\s*") }
53
54
override string getAPrimaryQlClass() { result = "OctalLiteral" }
55
}
0 commit comments