MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / sameText

Function sameText

graph-ui/tools/handtest-fixes-chat.mjs:843–843  ·  view source on GitHub ↗
(left, right)

Source from the content-addressed store, hash-verified

841const activeWorkspace = (page) => page.locator('[data-workspace-tab][aria-selected="true"]').first().getAttribute('data-workspace-tab').catch(() => '');
842/** The same text as the fresh view of the project, apart from numbers (times, memory) and spacing. */
843const sameText = (left, right) => left.replace(/\d[\d,.:]*/g, '#').replace(/\s+/g, ' ') === right.replace(/\d[\d,.:]*/g, '#').replace(/\s+/g, ' ');
844async function switchTo(page, project) {
845 await page.locator('.atlas-project-switcher summary').first().click();
846 await page.locator('.atlas-project-picker button', { has: page.locator('.atlas-project-result-name', { hasText: new RegExp(`^${project}`) }) }).first().click();

Callers 1

k24Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected