Files
2020-03-02 10:48:33 +00:00

8 lines
239 B
Plaintext

import javascript
from StringLiteral literal, RegExpDot dot, int pos
where
dot.getParent*() = literal and
pos = dot.getLocation().getStartColumn() - literal.getLocation().getStartColumn()
select dot, literal.getRawValue().charAt(pos)