| /expo/tools/src/android-update-native-dependencies/ |
| H A D | updateGradleFiles.ts | 45 .forEach((match) => { 46 modifiedBody = modifiedBody.replace(match, match.replace(oldVersion, newVersion)); 55 .forEach((match) => { 56 modifiedBody = modifiedBody.replace(match, match.replace(oldVersion, newVersion)); 65 .forEach((match) => { 66 modifiedBody = modifiedBody.replace(match, `${fullName}:${newVersion}`); 77 .forEach((match) => { 78 modifiedBody = modifiedBody.replace(match, match.replace(oldVersion, newVersion)); 88 .forEach((match) => { 89 modifiedBody = modifiedBody.replace(match, match.replace(oldVersion, newVersion));
|
| /expo/docs/common/ |
| H A D | error-utilities.ts | 55 if (redirectPath.match(/\/versions\/.*\/react-native\//)) { 76 const supportedVersions = versions.VERSIONS.filter(v => v.match(/^v/)); 84 return !!path.match(/\.html$/); 88 return !!path.match(/index\.html$/); 98 return !!path.match(new RegExp(VERSIONED_PATH_PATTERN)); 117 const isExpoSdkPage = path.match(new RegExp(SDK_PATH_PATTERN)); 118 const isExpoSdkIndexPage = path.match(new RegExp(VERSIONED_PATH_PATTERN + '/$')); 119 const isReactNativeApiPage = path.match(new RegExp(REACT_NATIVE_PATH_PATTERN)); 130 return !!path.match(/\/null$/);
|
| /expo/tools/src/versioning/ios/transforms/ |
| H A D | index.ts | 34 output = output.replace(transform.replace, (match, ...args) => { 39 value: match, 53 for (const match of matches) { constant 55 `${chalk.gray(String(match.line))}:`, 57 chalk.red(match.value.trimRight()) 60 `${chalk.gray(String(match.line))}:`, 62 chalk.green(match.replacedWith.trimRight())
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/scripts/ |
| H A D | version-utils.js | 48 const match = extractMatchIfValid(versionStr); 49 const [, version, major, minor, patch, prerelease] = match; 76 const match = versionStr.match(VERSION_REGEX); 77 if (!match) { 82 return match; 138 version.patch.match(/^\d+$/) && 142 version.prerelease.match(/^(\d{8})-(\d{4})$/))
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/scripts/ |
| H A D | version-utils.js | 15 const match = versionStr.match(VERSION_REGEX); 16 if (!match) { 21 const [, version, major, minor, patch, prerelease] = match;
|
| /expo/packages/@expo/metro-config/src/serializer/ |
| H A D | environmentVariableSerializerPlugin.ts | 21 return code.replace(/process\.env\.([a-zA-Z0-9_]+)/gm, (match) => { 22 const name = match.replace('process.env.', ''); 27 return match; 31 debug(`Inlining environment variable "${match}" with ${value}`); 37 const match = url.match(/[&?]transform\.environment=([^&]+)/); constant 38 return match ? match[1] : null;
|
| /expo/packages/@expo/metro-config/build/serializer/ |
| H A D | environmentVariableSerializerPlugin.js | 36 return code.replace(/process\.env\.([a-zA-Z0-9_]+)/gm, match => { 38 const name = match.replace('process.env.', ''); 42 return match; 45 debug(`Inlining environment variable "${match}" with ${value}`); 50 const match = url.match(/[&?]transform\.environment=([^&]+)/); 51 return match ? match[1] : null;
|
| /expo/packages/@expo/cli/src/start/server/type-generation/ |
| H A D | routes.ts | 166 if (filePath.match(/_layout\.[tj]sx?$/) || filePath.match(/\/\+/)) { 188 [...route.matchAll(CAPTURE_DYNAMIC_PARAMS)].map((match) => match[1]) 218 if (!route.match(ARRAY_GROUP_REGEX)) { 277 const match = route.match(ARRAY_GROUP_REGEX); constant 279 if (!match) { 284 const groupsMatch = match[0];
|
| /expo/apps/test-suite/firebase/ |
| H A D | storage.rules | 3 match /b/{bucket}/o { 4 match /users/{userId}/{allPaths=**} { 9 match /public/{allPaths=**} {
|
| H A D | firestore.rules | 3 match /databases/{database}/documents { 4 match /tests/{testId} {
|
| /expo/packages/babel-preset-expo/ |
| H A D | babel.config.js | 7 return !filename.match(/samples/) && filename.match(/src\/(.*)\.tsx?/);
|
| /expo/packages/expo-dev-launcher/bundle/components/ |
| H A D | Avatar.tsx | 47 if (profilePhoto.match('gravatar.com')) { 62 if (firstLetter?.match(/[a-d]/)) { 64 } else if (firstLetter?.match(/[e-h]/)) { 66 } else if (firstLetter?.match(/[i-l]/)) { 68 } else if (firstLetter?.match(/[m-p]/)) { 70 } else if (firstLetter?.match(/[q-t]/)) { 72 } else if (firstLetter?.match(/[u-z]/)) {
|
| /expo/packages/expo-router/src/fork/ |
| H A D | extractPathFromURL.ts | 10 url.match(/^https?:\/\//) 21 url.match(/^exp(s)?:\/\//) 23 const pathname = url.match(/exps?:\/\/.*?\/--\/(.*)/)?.[1]; 47 return !!url.hostname.match(/^expo-development-client$/);
|
| /expo/packages/expo-modules-autolinking/src/ |
| H A D | ReactImportsPatcher.ts | 40 (match: string, headerName: string): string => { 57 return match; 63 (match: string, ifPrefix: string, headerName: string): string => { 80 return match;
|
| /expo/packages/@expo/metro-runtime/build/error-overlay/UI/ |
| H A D | AnsiHighlight.js | 48 const match = lines[2] && lines[2]?.content?.match(/^ +/); 49 const whitespaceLength = (match && match[0]?.length) || 0;
|
| /expo/packages/expo-modules-autolinking/build/ |
| H A D | ReactImportsPatcher.js | 37 …let transformContent = content.replace(/(?<=^\s*)#import\s+"(.+)"(?=\s*$)/gm, (match, headerName) … 52 return match; 54 …ntent.replace(/(?<=^\s*)#(if|elif)\s+__has_include\("(.+)"\)(?=\s*$)/gm, (match, ifPrefix, headerN… 69 return match;
|
| /expo/tools/src/versioning/android/ |
| H A D | utils.ts | 17 if (line.match(startRegex)) { 23 if (line.match(endRegex)) {
|
| /expo/packages/create-expo-module/src/ |
| H A D | prompts.ts | 48 .replace(/^./, (match) => match.toUpperCase()) 114 .replace(/^./, (match) => match.toUpperCase())
|
| /expo/packages/@expo/cli/src/start/server/middleware/ |
| H A D | remoteDevtoolsSecurityHeadersMiddleware.ts | 13 !req.headers.origin.match(/^https?:\/\/localhost:/) && 14 !req.headers.origin.match(/^https:\/\/chrome-devtools-frontend\.appspot\.com/)
|
| /expo/tools/src/ |
| H A D | Packages.ts | 165 const match = buildGradle.match(/^group ?= ?'([\w.]+)'\n/m); constant 166 return match?.[1] ?? null; 177 const match = buildGradle.match(/^\s+namespace\s*=?\s*['"]([\w.]+)['"]/m); constant 178 return match?.[1] ?? null; 221 const match = settingsGradle.search( constant 229 if (this.packageName === 'expo-in-app-purchases' && match === -1) { 234 return match === -1;
|
| H A D | ProjectVersions.ts | 36 const match = buildGradleContent.match(/versionName ['"]([^'"]+?)['"]/); constant 38 if (!match) { 41 return match[1];
|
| /expo/packages/expo-router/build/ |
| H A D | matchers.js | 8 return name.match(/^\[([^[\](?:\.\.\.)]+?)\]$/)?.[1]; 13 return name.match(/^\[\.\.\.([^/]+?)\]$/)?.[1]; 18 return name.match(/^(?:[^\\(\\)])*?\(([^\\/]+)\).*?$/)?.[1];
|
| /expo/packages/@expo/server/src/ |
| H A D | environment.ts | 55 const match = config.namedRegex.exec(expoUrl.pathname); constant 56 if (match?.groups) { 57 for (const [key, value] of Object.entries(match.groups)) {
|
| /expo/packages/@expo/metro-runtime/build/error-overlay/Data/ |
| H A D | parseLogBoxLog.js | 110 const match = s.match(/(.*) \(at (.*\.js):([\d]+)\)/); 111 if (!match) { 114 const [content, fileName, row] = match.slice(1); 126 const metroInternalError = message.match(METRO_ERROR_FORMAT); 150 const babelTransformError = message.match(BABEL_TRANSFORM_ERROR_FORMAT); 174 const babelCodeFrameError = message.match(BABEL_CODE_FRAME_ERROR_FORMAT); 195 if (message.match(/^TransformError /)) {
|
| /expo/packages/expo-router/src/ |
| H A D | matchers.tsx | 3 // Don't match `...` or `[` or `]` inside the brackets 5 return name.match(/^\[([^[\](?:\.\.\.)]+?)\]$/)?.[1]; 10 return name.match(/^\[\.\.\.([^/]+?)\]$/)?.[1]; 15 return name.match(/^(?:[^\\(\\)])*?\(([^\\/]+)\).*?$/)?.[1];
|