forked from Shinonome/dots-hyprland
ai: gemini: annotation sources
This commit is contained in:
@@ -9,6 +9,11 @@ function getDomain(url) {
|
||||
return match ? match[1] : null;
|
||||
}
|
||||
|
||||
function getBaseUrl(url) {
|
||||
const match = url.match(/^(https?:\/\/[^\/]+)(\/.*)?$/);
|
||||
return match ? match[1] : null;
|
||||
}
|
||||
|
||||
function shellSingleQuoteEscape(str) {
|
||||
// escape single quotes
|
||||
return String(str)
|
||||
|
||||
Reference in New Issue
Block a user