Skip to content

Commit 28d89f6

Browse files
Fixed some [plugin:vite:vue] Whitespace was expected.
1 parent e76d1e8 commit 28d89f6

File tree

7 files changed

+18
-15
lines changed

7 files changed

+18
-15
lines changed

index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@
5656
<li>https://github.com/Laravel-Lang/common/tree/v1.0.13</li>
5757
</ul>
5858

59-
<ul>
60-
<li>https://github.com/Laravel-Lang/common/blob/main/composer.json</li>
61-
<li>https://github.com/Laravel-Lang/common/blob/main/src/Services/Renderer/ParagraphRenderer.php</li>
62-
<li>https://github.com/Laravel-Lang/common/blob/v14.6.2/composer.json</li>
63-
<li>https://github.com/Laravel-Lang/common/blob/v14.6.2/src/Services/Renderer/ParagraphRenderer.php</li>
64-
</ul>
59+
<ul>
60+
<li>https://github.com/Laravel-Lang/common/blob/main/composer.json</li>
61+
<li>https://github.com/Laravel-Lang/common/blob/main/src/Services/Renderer/ParagraphRenderer.php</li>
62+
<li>https://github.com/Laravel-Lang/common/blob/v14.6.2/composer.json</li>
63+
<li>https://github.com/Laravel-Lang/common/blob/v14.6.2/src/Services/Renderer/ParagraphRenderer.php</li>
64+
</ul>
6565

6666
<ul>
6767
<li>

src/node/plugins/transformers/blobs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { Manager } from '../manager.js'
33
export const blobsTransformer = Manager.create()
44
.setKey('blob')
55
.setCompactPatterns([
6-
/\[[\w\d\s`]+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/blob\/([\w\d\/.\-_]+)\)/g,
7-
/https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/blob\/([\w\d\/.\-_]+)/g
6+
/\[[\w\d\s`]+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/blob\/([\w\d\/.\-_]+)\/?\)/g,
7+
/(?<!:")(?<=^|\s|>)https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/blob\/([\w\d\/.\-_]+)\/?/g
88
])

src/node/plugins/transformers/commit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Manager } from '../manager.js'
22

33
export const commitTransformer = Manager.create()
44
.setKey('commit')
5+
.setAsCode()
56
.setCompactPatterns([
67
/<a.*href\s?=\s?"?https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/commit\/([\w\d]{40})"?.*>.*<\/a>/g,
78
/\[[\w\d\s`]+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/commit\/([\w\d]{40})\)/g,
@@ -11,4 +12,3 @@ export const commitTransformer = Manager.create()
1112
.setExpandValueReplaces({
1213
2: (value: string) => value.substring(0, 7)
1314
})
14-
.setAsCode()

src/node/plugins/transformers/compare.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Manager } from '../manager.js'
33
export const compareTransformer = Manager.create()
44
.setKey('compare')
55
.setCompactPatterns([
6+
/<a.*href\s?=\s?"?https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/compare\/([\w\d.\-]+)\.{3}([\w\d.\-]+)\/?"?.*>.*<\/a>/g,
67
/\[[\s\w\d`.\-]+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/compare\/([\w\d.\-]+)\.{3}([\w\d.\-]+)\)/g,
78
/https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/compare\/([\w\d.\-]+)\.{3}([\w\d.\-]+)/g,
89
/([\w\d.\-]+)\.{3}([\w\d.\-]+)/g

src/node/plugins/transformers/pull-request.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ export const pullRequestTransformer = Manager.create()
44
.setKey('pull')
55
.setSplitter('#', true)
66
.setCompactPatterns([
7-
/\[[\s`#@]*\d+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/pull\/(\d+)\)/g,
8-
/https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/pull\/(\d+)/g,
7+
/<a.*href\s?=\s?"?https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/pull\/(\d+)\/?"?.*>.*<\/a>/g,
8+
/\[[\s`#@]*\d+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/pull\/(\d+)\/?\)/g,
9+
/https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/pull\/(\d+)\/?/g,
910
/#(\d+)/g
1011
])

src/node/plugins/transformers/tags.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import { Manager } from '../manager.js'
33
export const tagsTransformer = Manager.create()
44
.setKey('tag')
55
.setCompactPatterns([
6-
/\[[\s\w\d`.\-]+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/releases\/tag\/(v?\d+\.\d+\.\d+-?\w*\.?\d*)\)/g,
7-
/https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/releases\/tag\/(v?\d+\.\d+\.\d+-?\w*\.?\d*)/g,
8-
/(?<!:)(?<=^|\s)(v?\d+\.\d+\.\d+-?\w*\.?\d*)(?<!:)/g
6+
/<a.*href\s?=\s?"?https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/releases\/tag\/(v?\d+\.\d+\.\d+-?\w*\.?\d*)\/?"?.*>.*<\/a>/g,
7+
/\[[\s\w\d`.\-]+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/releases\/tag\/(v?\d+\.\d+\.\d+-?\w*\.?\d*)\/?\)/g,
8+
/https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/releases\/tag\/(v?\d+\.\d+\.\d+-?\w*\.?\d*)\/?/g,
9+
/(?<!:)(?<=^|\s|>)(v?\d+\.\d+\.\d+-?\w*\.?\d*)(?<!:)/g
910
])
1011
.setExpandFormat('$1/$key/$2', '$1/releases/tag/$2')
1112
.setExpandValueReplaces({

src/node/plugins/transformers/trees.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export const treesTransformer = Manager.create()
44
.setKey('tree')
55
.setCompactPatterns([
66
/\[[\s`#@]*\d+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)\)/g,
7-
/(?<!:")(?<=^|\s)https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)/g
7+
/(?<!:")(?<=^|\s|>)https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)/g
88
])

0 commit comments

Comments
 (0)