Skip to content

Commit 743b612

Browse files
committed
Javascript/Python: Sync XML.qll
1 parent 0d4b2e4 commit 743b612

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

  • javascript/ql/src/semmle/javascript
  • python/ql/src/semmle/python/xml

javascript/ql/src/semmle/javascript/XML.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,8 @@ class XMLParent extends @xmlparent {
100100
* left to right, separated by a space.
101101
*/
102102
string allCharactersString() {
103-
result = concat(string chars, int pos |
104-
xmlChars(_, chars, this, pos, _, _)
105-
|
106-
chars, " " order by pos
107-
)
103+
result =
104+
concat(string chars, int pos | xmlChars(_, chars, this, pos, _, _) | chars, " " order by pos)
108105
}
109106

110107
/** Gets the text value contained in this XML parent. */

python/ql/src/semmle/python/xml/XML.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,8 @@ class XMLParent extends @xmlparent {
100100
* left to right, separated by a space.
101101
*/
102102
string allCharactersString() {
103-
result = concat(string chars, int pos |
104-
xmlChars(_, chars, this, pos, _, _)
105-
|
106-
chars, " " order by pos
107-
)
103+
result =
104+
concat(string chars, int pos | xmlChars(_, chars, this, pos, _, _) | chars, " " order by pos)
108105
}
109106

110107
/** Gets the text value contained in this XML parent. */

0 commit comments

Comments
 (0)