Skip to content

Commit bcc5622

Browse files
authored
Merge pull request #6 from g0rdan/semicolon-issue
Fix: semicolon issue
2 parents ac9a946 + 7a81681 commit bcc5622

5 files changed

Lines changed: 12 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## [0.1.2]
4+
5+
- Attempt to fix "semicolon" [issue](https://github.com/g0rdan/publink/issues/5)
6+
37
## [0.1.1]
48

59
- Simplify http requests

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ This extension allows you to see a hover with package's info from [pub.dev](http
88

99
## Release Notes
1010

11+
### 0.1.2
12+
13+
- Attempt to fix "semicolon" [issue](https://github.com/g0rdan/publink/issues/5)
14+
1115
### 0.1.1
1216

1317
- Simplify http requests

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"publisher": "gordin",
44
"displayName": "PubLink",
55
"description": "PubLink allows you quickly open a flutter/dart package on pub.dev",
6-
"version": "0.1.1",
6+
"version": "0.1.2",
77
"license": "MIT",
88
"icon": "assets/icons/main_icon.png",
99
"repository": {

src/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class PubLinkModule {
3434
return null;
3535
}
3636

37-
const packageName = document.getText(range);
37+
const packageName = document.getText(range).replace(":", "");
3838
// Define the URL based on the word or any specific logic
3939
const url = `https://pub.dev/packages/${packageName}`;
4040

0 commit comments

Comments
 (0)