Skip to content

Commit 1430323

Browse files
committed
Fixes #2.
1 parent ee1778d commit 1430323

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SCXcodeSwitchExpander/DVTTextCompletionController+SCXcodeSwitchExpander.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ - (void)tryExpandingSwitchStatement
8282
}
8383

8484
// See if the current line has a switch statement
85-
NSRange switchRange = [textView.string rangeOfString:@"\\s+switch\\s+" options:NSRegularExpressionSearch range:NSMakeRange(newLineRange.location, self.session.wordStartLocation - newLineRange.location)];
85+
NSRange switchRange = [textView.string rangeOfString:@"\\s+switch\\s*\\\(" options:NSRegularExpressionSearch range:NSMakeRange(newLineRange.location, self.session.wordStartLocation - newLineRange.location)];
8686
if(switchRange.location == NSNotFound) {
8787
return;
8888
}

SCXcodeSwitchExpander/SCXcodeSwitchExpander-Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>BNDL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
20+
<string>1.0.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)