Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
if the string contains a PERCENT, it's not safe to remove brackets that follow and operator with the same or higher precedence than PERCENT
- Loading branch information
1 parent
5e1f620
commit d1ad873
Showing
3 changed files
with
89 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
("" % a) ** 2 | ||
("" % a)[0] | ||
("" % a)() | ||
("" % a).b | ||
|
||
2 * ("" % a) | ||
2 @ ("" % a) | ||
2 / ("" % a) | ||
2 // ("" % a) | ||
2 % ("" % a) | ||
+("" % a) | ||
b + ("" % a) | ||
-("" % a) | ||
b - ("" % a) | ||
~("" % a) | ||
2 ** ("" % a) | ||
await ("" % a) | ||
b[("" % a)] | ||
b(("" % a)) | ||
# output | ||
("" % a) ** 2 | ||
("" % a)[0] | ||
("" % a)() | ||
("" % a).b | ||
|
||
2 * ("" % a) | ||
2 @ ("" % a) | ||
2 / ("" % a) | ||
2 // ("" % a) | ||
2 % ("" % a) | ||
+("" % a) | ||
b + "" % a | ||
-("" % a) | ||
b - "" % a | ||
~("" % a) | ||
2 ** ("" % a) | ||
await ("" % a) | ||
b[("" % a)] | ||
b(("" % a)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters