Skip to content

Commit 7798930

Browse files
committed
integerパラメータであることをチェックする正規表現を修正。空文字はエラーとする。
1 parent 90ce08c commit 7798930

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dConnectSDK/dConnectSDKForIOS/DConnectSDK/Classes/profile/spec/DConnectSpecConstants.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ + (NSString *) toBoolString: (BOOL)boolValue {
273273
}
274274

275275
+ (BOOL)isDigit:(NSString *)text {
276-
NSString *expression = @"^[-+]?([0-9]*)?$";
276+
NSString *expression = @"^[-+]?([0-9]+)$";
277277
NSError *error = nil;
278278

279279
NSRegularExpression *regex =

0 commit comments

Comments
 (0)