ai: gemini: annotation sources

This commit is contained in:
end-4
2025-05-10 10:56:35 +02:00
parent 0af7924be9
commit f93cca8a13
6 changed files with 130 additions and 2 deletions
@@ -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)