| /expo/packages/expo-build-properties/src/ |
| H A D | fileContentsUtils.ts | 33 const regex = new RegExp(`(\\n${escapeRegExp(end)})`, 'gm'); constant 34 const match = regex.exec(src); 37 return src.replace(regex, `\n${contents}$1`); 51 const regex = new RegExp(`\\n${escapeRegExp(start)}\\n[\\s\\S]*\\n${escapeRegExp(end)}`, 'gm'); constant 52 return src.replace(regex, '');
|
| /expo/packages/expo-build-properties/build/ |
| H A D | fileContentsUtils.js | 20 const regex = new RegExp(`(\\n${escapeRegExp(end)})`, 'gm'); 21 const match = regex.exec(src); 24 return src.replace(regex, `\n${contents}$1`); 38 const regex = new RegExp(`\\n${escapeRegExp(start)}\\n[\\s\\S]*\\n${escapeRegExp(end)}`, 'gm'); 39 return src.replace(regex, '');
|
| /expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/records/ |
| H A D | RegexValidatorTest.kt | 9 fun `should not throw if a value match regex`() { in should not throw if a value match regex() 16 fun `should throw if a value not match regex`() { in should throw if a value not match regex()
|
| /expo/packages/@expo/config-plugins/src/android/ |
| H A D | Version.ts | 44 const regex = new RegExp(`(${name}\\s?=\\s?)(\\d+(?:\\.\\d+)?)`); constant 45 const currentVersion = buildGradle.match(regex)?.[2]; 56 return buildGradle.replace(regex, `$1${Math.max(minVersion, currentVersionNum)}`);
|
| /expo/packages/expo-modules-core/ios/Swift/Exceptions/ |
| H A D | CodedError.swift | 49 let regex = try! NSRegularExpression(pattern: "(.)([A-Z])", options: []) in errorCodeFromString() variable 52 return "ERR_" + regex in errorCodeFromString()
|
| /expo/ios/versioned/sdk49/ExpoModulesCore/ios/Swift/Exceptions/ |
| H A D | CodedError.swift | 49 let regex = try! NSRegularExpression(pattern: "(.)([A-Z])", options: []) in errorCodeFromString() variable 52 return "ERR_" + regex in errorCodeFromString()
|
| /expo/ios/versioned/sdk48/ExpoModulesCore/ios/Swift/Exceptions/ |
| H A D | CodedError.swift | 49 let regex = try! NSRegularExpression(pattern: "(.)([A-Z])", options: []) in errorCodeFromString() variable 52 return "ERR_" + regex in errorCodeFromString()
|
| /expo/ios/versioned/sdk47/ExpoModulesCore/ios/Swift/Exceptions/ |
| H A D | CodedError.swift | 49 let regex = try! NSRegularExpression(pattern: "(.)([A-Z])", options: []) in errorCodeFromString() variable 52 return "ERR_" + regex in errorCodeFromString()
|
| /expo/packages/expo-router/src/fork/ |
| H A D | getStateFromPath.ts | 23 regex?: RegExp; 146 const indexedKey = config.regex?.toString() ?? config.pattern; 300 config.path === '' && (!config.regex || config.regex.test('')) 305 config.path.startsWith(':') && config.regex!.test('') 371 if (!config.regex) { 375 const match = remainingPath.match(config.regex); 596 const regex = pattern 602 regex, 750 const regex = new RegExp(`^\\/?${escape(basePath)}`, 'g'); constant 751 basePathCache.set(basePath, regex); [all …]
|
| /expo/packages/@expo/config-plugins/build/android/ |
| H A D | Version.js | 56 const regex = new RegExp(`(${name}\\s?=\\s?)(\\d+(?:\\.\\d+)?)`); 57 …const currentVersion = (_buildGradle$match = buildGradle.match(regex)) === null || _buildGradle$ma… 64 return buildGradle.replace(regex, `$1${Math.max(minVersion, currentVersionNum)}`);
|
| /expo/packages/@expo/cli/src/run/ios/options/ |
| H A D | promptDevice.ts | 41 const regex = new RegExp(input, 'i'); 42 return choices.filter((choice: any) => regex.test(choice.title));
|
| /expo/packages/expo-router/build/fork/ |
| H A D | getStateFromPath.js | 114 const indexedKey = config.regex?.toString() ?? config.pattern; 237 config.path === '' && (!config.regex || config.regex.test(''))) ?? 240 config.path.startsWith(':') && config.regex.test('')) ?? 243 leafNodes.find((config) => config.path.startsWith('*') && config.regex.test('/')); 281 if (!config.regex) { 284 const match = remainingPath.match(config.regex); 432 const regex = pattern constant 437 regex, 541 const regex = new RegExp(`^\\/?${(0, escape_string_regexp_1.default)(basePath)}`, 'g'); 542 basePathCache.set(basePath, regex); [all …]
|
| /expo/ios/versioned/sdk49/EXManifests/EXManifests/ |
| H A D | NewManifest.swift | 48 let regex = try! NSRegularExpression(pattern: "^exposdk:(\\d+\\.\\d+\\.\\d+)$", options: []) in getSDKVersionFromRuntimeVersion() variable 49 guard let match = regex.firstMatch( in getSDKVersionFromRuntimeVersion()
|
| /expo/packages/expo-manifests/ios/EXManifests/ |
| H A D | NewManifest.swift | 48 let regex = try! NSRegularExpression(pattern: "^exposdk:(\\d+\\.\\d+\\.\\d+)$", options: []) in getSDKVersionFromRuntimeVersion() variable 49 guard let match = regex.firstMatch( in getSDKVersionFromRuntimeVersion()
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/kotlin/records/ |
| H A D | FieldValidator.kt | 133 class RegexValidator(private val regex: Regex) : FieldValidator<CharSequence> { constant in abi48_0_0.expo.modules.kotlin.records.RegexValidator 135 if (!regex.matches(value)) { in validate() 136 throw ValidationException("Provided string $value didn't match regex $regex") in validate()
|
| /expo/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/records/ |
| H A D | FieldValidator.kt | 133 class RegexValidator(private val regex: Regex) : FieldValidator<CharSequence> { constant in expo.modules.kotlin.records.RegexValidator 135 if (!regex.matches(value)) { in validate() 136 throw ValidationException("Provided string $value didn't match regex $regex") in validate()
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/kotlin/records/ |
| H A D | FieldValidator.kt | 133 class RegexValidator(private val regex: Regex) : FieldValidator<CharSequence> { constant in abi47_0_0.expo.modules.kotlin.records.RegexValidator 135 if (!regex.matches(value)) { in validate() 136 throw ValidationException("Provided string $value didn't match regex $regex") in validate()
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/kotlin/records/ |
| H A D | FieldValidator.kt | 133 class RegexValidator(private val regex: Regex) : FieldValidator<CharSequence> { constant in abi49_0_0.expo.modules.kotlin.records.RegexValidator 135 if (!regex.matches(value)) { in validate() 136 throw ValidationException("Provided string $value didn't match regex $regex") in validate()
|
| /expo/tools/src/vendoring/devmenu/steps/ |
| H A D | PrefixHeaders.ts | 63 const regex = `(#include.*)${header.base}"`; 64 return acc.replace(new RegExp(regex, 'g'), `$1${this.prefix}${header.base}"`);
|
| /expo/tools/src/commands/ |
| H A D | IosNativeUnitTests.ts | 17 const regex = new RegExp("test_spec\\s'([^']*)'", 'g'); constant 20 while ((match = regex.exec(podspec)) !== null) {
|
| /expo/packages/expo-manifests/android/src/main/java/expo/modules/manifests/core/ |
| H A D | NewManifest.kt | 8 import java.util.regex.Matcher 9 import java.util.regex.Pattern
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/Libraries/NativeAnimation/Nodes/ |
| H A D | ABI47_0_0RCTInterpolationAnimatedNode.m | 12 static NSRegularExpression *regex; 35 …regex = [NSRegularExpression regularExpressionWithPattern:fpRegex options:NSRegularExpressionCaseI… 60 _matches = [regex matchesInString:value options:0 range:NSMakeRange(0, [value length])]; 82 _matches = [regex matchesInString:value options:0 range:NSMakeRange(0, [value length])]; 163 self.animatedObject = [regex stringByReplacingMatchesInString:_soutputRange[0]
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/Libraries/NativeAnimation/Nodes/ |
| H A D | ABI48_0_0RCTInterpolationAnimatedNode.m | 12 static NSRegularExpression *regex; 33 regex = [NSRegularExpression regularExpressionWithPattern:fpRegex 60 _matches = [regex matchesInString:value options:0 range:NSMakeRange(0, [value length])]; 82 _matches = [regex matchesInString:value options:0 range:NSMakeRange(0, [value length])]; 157 self.animatedObject = [regex stringByReplacingMatchesInString:_soutputRange[0]
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/ReactCommon/hermes/inspector/chrome/ |
| H A D | ABI48_0_0MessageConverters.h | 50 const std::regex regex(stripCachePrevention(chromeLoc.urlRegex.value())); in setHermesLocation() 56 if (std::regex_match(*it, regex)) { in setHermesLocation()
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/ReactCommon/hermes/inspector/chrome/ |
| H A D | ABI49_0_0MessageConverters.h | 50 const std::regex regex(stripCachePrevention(chromeLoc.urlRegex.value())); in setHermesLocation() 56 if (std::regex_match(*it, regex)) { in setHermesLocation()
|