Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 438) sorted by relevance

12345678910>>...18

/expo/tools/src/android-update-native-dependencies/
H A DupdateGradleFiles.ts45 .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 Derror-utilities.ts55 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 Dindex.ts34 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 Dversion-utils.js48 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 Dversion-utils.js15 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 DenvironmentVariableSerializerPlugin.ts21 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 DenvironmentVariableSerializerPlugin.js36 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 Droutes.ts166 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 Dstorage.rules3 match /b/{bucket}/o {
4 match /users/{userId}/{allPaths=**} {
9 match /public/{allPaths=**} {
H A Dfirestore.rules3 match /databases/{database}/documents {
4 match /tests/{testId} {
/expo/packages/babel-preset-expo/
H A Dbabel.config.js7 return !filename.match(/samples/) && filename.match(/src\/(.*)\.tsx?/);
/expo/packages/expo-dev-launcher/bundle/components/
H A DAvatar.tsx47 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 DextractPathFromURL.ts10 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 DReactImportsPatcher.ts40 (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 DAnsiHighlight.js48 const match = lines[2] && lines[2]?.content?.match(/^ +/);
49 const whitespaceLength = (match && match[0]?.length) || 0;
/expo/packages/expo-modules-autolinking/build/
H A DReactImportsPatcher.js37 …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 Dutils.ts17 if (line.match(startRegex)) {
23 if (line.match(endRegex)) {
/expo/packages/create-expo-module/src/
H A Dprompts.ts48 .replace(/^./, (match) => match.toUpperCase())
114 .replace(/^./, (match) => match.toUpperCase())
/expo/packages/@expo/cli/src/start/server/middleware/
H A DremoteDevtoolsSecurityHeadersMiddleware.ts13 !req.headers.origin.match(/^https?:\/\/localhost:/) &&
14 !req.headers.origin.match(/^https:\/\/chrome-devtools-frontend\.appspot\.com/)
/expo/tools/src/
H A DPackages.ts165 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 DProjectVersions.ts36 const match = buildGradleContent.match(/versionName ['"]([^'"]+?)['"]/); constant
38 if (!match) {
41 return match[1];
/expo/packages/expo-router/build/
H A Dmatchers.js8 return name.match(/^\[([^[\](?:\.\.\.)]+?)\]$/)?.[1];
13 return name.match(/^\[\.\.\.([^/]+?)\]$/)?.[1];
18 return name.match(/^(?:[^\\(\\)])*?\(([^\\/]+)\).*?$/)?.[1];
/expo/packages/@expo/server/src/
H A Denvironment.ts55 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 DparseLogBoxLog.js110 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 Dmatchers.tsx3 // Don't match `...` or `[` or `]` inside the brackets
5 return name.match(/^\[([^[\](?:\.\.\.)]+?)\]$/)?.[1];
10 return name.match(/^\[\.\.\.([^/]+?)\]$/)?.[1];
15 return name.match(/^(?:[^\\(\\)])*?\(([^\\/]+)\).*?$/)?.[1];

12345678910>>...18