We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b85f7ff commit eccd633Copy full SHA for eccd633
1 file changed
packages/pyright-internal/src/parser/tokenizer.ts
@@ -1616,7 +1616,7 @@ export class Tokenizer {
1616
let isInNamedUnicodeEscape = false;
1617
const start = this._cs.position;
1618
let escapedValueLength = 0;
1619
- const getEscapedValue = () => this._cs.getText().slice(start, start + escapedValueLength);
+ const getEscapedValue = () => cloneStr(this._cs.getText().slice(start, start + escapedValueLength));
1620
1621
while (true) {
1622
if (this._cs.isEndOfStream()) {
0 commit comments