Skip to content

Commit 319868f

Browse files
committed
fix: remove ios variable call regex
1 parent 9a4b761 commit 319868f

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

Cartfile.resolved

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github "LaunchDarkly/swift-eventsource" "3.1.1"
1+
github "LaunchDarkly/swift-eventsource" "3.3.0"

DevCycle.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ Pod::Spec.new do |spec|
2121
spec.source_files = "DevCycle/**/*.{h,m,swift}"
2222
spec.swift_version = '5.0'
2323

24-
spec.dependency 'LDSwiftEventSource', '~> 3.0'
24+
spec.dependency 'LDSwiftEventSource', '~> 3.3'
2525

2626
end

DevCycle/DevCycleClient.swift

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -320,17 +320,6 @@ public class DevCycleClient {
320320
}
321321

322322
func getVariable<T>(key: String, defaultValue: T) -> DVCVariable<T> {
323-
let regex = try? NSRegularExpression(pattern: ".*[^a-z0-9(\\-)(_)].*")
324-
if (regex?.firstMatch(in: key, range: NSMakeRange(0, key.count)) != nil) {
325-
Log.error("The variable key \(key) is invalid. It must contain only lowercase letters, numbers, hyphens and underscores. The default value will always be returned for this call.")
326-
return DVCVariable(
327-
key: key,
328-
value: nil,
329-
defaultValue: defaultValue,
330-
evalReason: nil
331-
)
332-
}
333-
334323
return variableQueue.sync {
335324
var variable: DVCVariable<T>
336325
if (self.variableInstanceDictonary[key] == nil) {

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ let package = Package(
1818
.package(
1919
name: "LDSwiftEventSource",
2020
url: "https://github.com/LaunchDarkly/swift-eventsource.git",
21-
.upToNextMajor(from: "3.0.0")
21+
.upToNextMajor(from: "3.3.0")
2222
)
2323
],
2424
targets: [

0 commit comments

Comments
 (0)