mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Merge pull request #1168 from geoffw0/format-amp
CPP: %@ in format strings
This commit is contained in:
@@ -256,11 +256,11 @@ class FormatLiteral extends Literal {
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the format string, with '%%' replaced by '_' (to avoid processing
|
||||
* '%%' as a format specifier).
|
||||
* Gets the format string, with '%%' and '%@' replaced by '_' (to avoid processing
|
||||
* them as format specifiers).
|
||||
*/
|
||||
string getFormat() {
|
||||
result = this.getValue().replaceAll("%%", "_")
|
||||
result = this.getValue().replaceAll("%%", "_").replaceAll("%@", "_")
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user