Initial commit: Paperclip plugin for Legal AI integration
16 agent tools, event handler for auto-linking, sync job every 15m. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
16
node_modules/@paperclipai/shared/dist/project-url-key.js
generated
vendored
Normal file
16
node_modules/@paperclipai/shared/dist/project-url-key.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
const PROJECT_URL_KEY_DELIM_RE = /[^a-z0-9]+/g;
|
||||
const PROJECT_URL_KEY_TRIM_RE = /^-+|-+$/g;
|
||||
export function normalizeProjectUrlKey(value) {
|
||||
if (typeof value !== "string")
|
||||
return null;
|
||||
const normalized = value
|
||||
.trim()
|
||||
.toLowerCase()
|
||||
.replace(PROJECT_URL_KEY_DELIM_RE, "-")
|
||||
.replace(PROJECT_URL_KEY_TRIM_RE, "");
|
||||
return normalized.length > 0 ? normalized : null;
|
||||
}
|
||||
export function deriveProjectUrlKey(name, fallback) {
|
||||
return normalizeProjectUrlKey(name) ?? normalizeProjectUrlKey(fallback) ?? "project";
|
||||
}
|
||||
//# sourceMappingURL=project-url-key.js.map
|
||||
Reference in New Issue
Block a user