File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
javascript/ql/src/semmle/javascript/frameworks Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -216,20 +216,13 @@ module Angular2 {
216216 }
217217 }
218218
219- private string getInternalName ( string name ) {
220- exists ( Identifier id |
221- result = id .getName ( ) and
222- name = result .regexpCapture ( "\\u0275(DomAdapter|getDOM)" , 1 )
223- )
224- }
225-
226219 /** Gets a reference to a `DomAdapter`, which provides acess to raw DOM elements. */
227220 private DataFlow:: SourceNode domAdapter ( ) {
228221 // Note: these are internal properties, prefixed with the "latin small letter barred O (U+0275)" character.
229222 // Despite being internal, some codebases do access them.
230- result .hasUnderlyingType ( "@angular/common" , getInternalName ( "DomAdapter" ) )
223+ result .hasUnderlyingType ( "@angular/common" , 629 . toUnicode ( ) + "DomAdapter" )
231224 or
232- result = DataFlow:: moduleImport ( "@angular/common" ) .getAMemberCall ( getInternalName ( "getDOM" ) )
225+ result = DataFlow:: moduleImport ( "@angular/common" ) .getAMemberCall ( 629 . toUnicode ( ) + "getDOM" )
233226 }
234227
235228 /** A reference to the DOM location obtained through `DomAdapter.getLocation()`. */
You can’t perform that action at this time.
0 commit comments