(value: string)
| 118 | * `encodeURIComponent` leaves apostrophes untouched, so the doubling must happen here. |
| 119 | */ |
| 120 | export function escapeODataString(value: string): string { |
| 121 | return value.replace(/'/g, "''") |
| 122 | } |
| 123 | |
| 124 | /** Pattern for Microsoft Graph item/drive IDs: alphanumeric, hyphens, underscores, and ! (for SharePoint b!<base64> format) */ |
| 125 | export const GRAPH_ID_PATTERN = /^[a-zA-Z0-9!_-]+$/ |
no test coverage detected