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 {
216
216
}
217
217
}
218
218
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
-
226
219
/** Gets a reference to a `DomAdapter`, which provides acess to raw DOM elements. */
227
220
private DataFlow:: SourceNode domAdapter ( ) {
228
221
// Note: these are internal properties, prefixed with the "latin small letter barred O (U+0275)" character.
229
222
// Despite being internal, some codebases do access them.
230
- result .hasUnderlyingType ( "@angular/common" , getInternalName ( "DomAdapter" ) )
223
+ result .hasUnderlyingType ( "@angular/common" , 629 . toUnicode ( ) + "DomAdapter" )
231
224
or
232
- result = DataFlow:: moduleImport ( "@angular/common" ) .getAMemberCall ( getInternalName ( "getDOM" ) )
225
+ result = DataFlow:: moduleImport ( "@angular/common" ) .getAMemberCall ( 629 . toUnicode ( ) + "getDOM" )
233
226
}
234
227
235
228
/** A reference to the DOM location obtained through `DomAdapter.getLocation()`. */
You can’t perform that action at this time.
0 commit comments