From 88a827bec6c33b929f8a46059da462f1848c2fda Mon Sep 17 00:00:00 2001
From: Andrey Helldar <helldar@dragon-code.pro>
Date: Thu, 2 Mar 2023 15:45:57 +0300
Subject: [PATCH] Fixed: [plugin:vite:vue] Whitespace was expected.

---
 index.html                             | 24 ++++++++++++++++++++++++
 src/node/plugins/transformers/trees.ts |  2 +-
 2 files changed, 25 insertions(+), 1 deletion(-)

diff --git a/index.html b/index.html
index 97835fe..aee0aab 100644
--- a/index.html
+++ b/index.html
@@ -63,6 +63,18 @@
                 <li>https://github.com/Laravel-Lang/common/blob/v14.6.2/src/Services/Renderer/ParagraphRenderer.php</li>
             </ul>
 
+            <ul>
+                <li>
+                    <a
+                        href="https://github.com/Laravel-Lang/common/tree/main/locales/ar"
+                        target="_blank"
+                        rel="noopener noreferrer">
+                        ar
+                        <ExternalLinkIcon />
+                    </a>
+                </li>
+            </ul>
+
             <p>**Full Changelog**: https://github.com/Laravel-Lang/common/compare/12.18.3...12.20.4</p>
 
             <p>**Full Changelog**: 12.18.3...12.20.4</p>
@@ -118,6 +130,18 @@
                 <li>https://github.com/Laravel-Lang/publisher/blob/v14.6.2/src/Services/Renderer/ParagraphRenderer.php</li>
             </ul>
 
+            <ul>
+                <li>
+                    <a
+                        href="https://github.com/Laravel-Lang/lang/tree/main/locales/ar"
+                        target="_blank"
+                        rel="noopener noreferrer">
+                        ar
+                        <ExternalLinkIcon />
+                    </a>
+                </li>
+            </ul>
+
             <p>**Full Changelog**: https://github.com/Laravel-Lang/lang/compare/12.18.3...12.20.4</p>
 
             <p>**Full Changelog**: 12.18.3...12.20.4</p>
diff --git a/src/node/plugins/transformers/trees.ts b/src/node/plugins/transformers/trees.ts
index ed21b52..cbe06e3 100644
--- a/src/node/plugins/transformers/trees.ts
+++ b/src/node/plugins/transformers/trees.ts
@@ -4,5 +4,5 @@ export const treesTransformer = Manager.create()
     .setKey('tree')
     .setCompactPatterns([
         /\[[\s`#@]*\d+]\(https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)\)/g,
-        /https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)/g
+        /(?<!:")(?<=^|\s)https:\/\/github\.com\/([\w\d\-_]+)\/([\w\d\-_]+)\/tree\/([\d\w.\-_\/]+)/g
     ])