Fix #7
This commit is contained in:
parent
c3713fd018
commit
56f6c5ce3b
@ -109,7 +109,6 @@ class SocketEvent {
|
|||||||
let mut = RegexMutable(str)
|
let mut = RegexMutable(str)
|
||||||
if let num = mut["~~(\\d)"].groups() {
|
if let num = mut["~~(\\d)"].groups() {
|
||||||
newArr[i] = self.datas[num[1].toInt()!]
|
newArr[i] = self.datas[num[1].toInt()!]
|
||||||
// self.currentPlace++
|
|
||||||
} else {
|
} else {
|
||||||
newArr[i] = arr[i]
|
newArr[i] = arr[i]
|
||||||
}
|
}
|
||||||
@ -154,7 +153,7 @@ class SocketEvent {
|
|||||||
return self.fillInArray(args as NSArray)
|
return self.fillInArray(args as NSArray)
|
||||||
} else if let string = args as? String {
|
} else if let string = args as? String {
|
||||||
if string == "~~\(self.currentPlace)" {
|
if string == "~~\(self.currentPlace)" {
|
||||||
return self.datas.removeAtIndex(0)
|
return self.datas[0]
|
||||||
}
|
}
|
||||||
} else if args is Bool {
|
} else if args is Bool {
|
||||||
// We have multiple items
|
// We have multiple items
|
||||||
@ -168,7 +167,7 @@ class SocketEvent {
|
|||||||
let mut = RegexMutable(str)
|
let mut = RegexMutable(str)
|
||||||
|
|
||||||
if let num = mut["~~(\\d)"].groups() {
|
if let num = mut["~~(\\d)"].groups() {
|
||||||
returnArr.append(self.datas[num[1].toInt()!])
|
returnArr[i] = self.datas[num[1].toInt()!]
|
||||||
} else {
|
} else {
|
||||||
returnArr.append(str)
|
returnArr.append(str)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user