mirror of
https://github.com/SableClient/Sable.git
synced 2026-12-06 00:32:26 -08:00
redo settings and formatting things
This commit is contained in:
18 files changed
+1004
-515
No files matched your search
@@ -9,8 +9,7 @@ export type GithubRawParts = {
|
||||
directoryPath: string;
|
||||
};
|
||||
|
||||
const RAW_RE =
|
||||
/^https:\/\/raw\.githubusercontent\.com\/([^/]+)\/([^/]+)\/([^/]+)(?:\/(.*))?$/;
|
||||
const RAW_RE = /^https:\/\/raw\.githubusercontent\.com\/([^/]+)\/([^/]+)\/([^/]+)(?:\/(.*))?$/;
|
||||
|
||||
export function parseGithubRawBaseUrl(baseUrl: string): GithubRawParts | null {
|
||||
const trimmed = baseUrl.trim().replace(/\/+$/, '');
|
||||
|
||||
Reference in new issue
Block a user