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() {
5252 result = getAValueExportedByPackage ( ) .getALocalSource ( )
5353 or
5454 // Nested property reads.
55- result = getAValueExportedByPackage ( ) .( DataFlow:: SourceNode ) .getAPropertyReference ( publicPropertyName ( ) )
55+ result =
56+ getAValueExportedByPackage ( ) .( DataFlow:: SourceNode ) .getAPropertyReference ( publicPropertyName ( ) )
5657 or
5758 // module.exports.foo = require("./other-module.js");
5859 exists ( Module mod |
@@ -186,9 +187,7 @@ private DataFlow::Node getAnExportFromModule(Module mod) {
186187 * This only allows properties whose first character is a letter or number.
187188 */
188189bindingset [ result ]
189- private string publicPropertyName ( ) {
190- result .regexpMatch ( "[a-zA-Z0-9].*" )
191- }
190+ private string publicPropertyName ( ) { result .regexpMatch ( "[a-zA-Z0-9].*" ) }
192191
193192/**
194193 * 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