Skip to content

Commit 51c9ec6

Browse files
committed
Fix import typing as x regex
1 parent 5f1622a commit 51c9ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/typingHintProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class TypingHintProvider {
4444
return true;
4545
} else {
4646
m = new RegExp(
47-
`^[ \t]*(import +typing +as +([a-zA-Z_][a-zA-Z0-9_-]+)|import +typing)`,
47+
`^[ \t]*(import +typing +as +([a-zA-Z_][a-zA-Z0-9_-]*)|import +typing)`,
4848
"m"
4949
).exec(this.docText);
5050
if (m) {

0 commit comments

Comments
 (0)