File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ private DataFlow::Node getAValueExportedByPackage() {
52
52
result = getAValueExportedByPackage ( ) .getALocalSource ( )
53
53
or
54
54
// Nested property reads.
55
- result = getAValueExportedByPackage ( ) .( DataFlow:: SourceNode ) .getAPropertyReference ( publicPropertyName ( ) )
55
+ result =
56
+ getAValueExportedByPackage ( ) .( DataFlow:: SourceNode ) .getAPropertyReference ( publicPropertyName ( ) )
56
57
or
57
58
// module.exports.foo = require("./other-module.js");
58
59
exists ( Module mod |
@@ -186,9 +187,7 @@ private DataFlow::Node getAnExportFromModule(Module mod) {
186
187
* This only allows properties whose first character is a letter or number.
187
188
*/
188
189
bindingset [ result ]
189
- private string publicPropertyName ( ) {
190
- result .regexpMatch ( "[a-zA-Z0-9].*" )
191
- }
190
+ private string publicPropertyName ( ) { result .regexpMatch ( "[a-zA-Z0-9].*" ) }
192
191
193
192
/**
194
193
* Holds if the given function is part of a private (or protected) method declaration.
You can’t perform that action at this time.
0 commit comments