Skip to content

Commit

Permalink
SwiftClass regex no longer returns class _ lots of words {
Browse files Browse the repository at this point in the history
  • Loading branch information
tsabend committed Feb 25, 2016
1 parent e919189 commit 0fad1a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fus.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def unused_classes
private

def find_all_swift_classes(swift_text)
swift_text.scan(/class\s+([^func][^var][a-zA-Z_]+)\s*:?.*\{/).flatten
swift_text.scan(/class\s+([^func][^var][a-zA-Z_]+)\s*:?\s[a-zA-Z_]*\b?\s*{/).flatten
end

def class_is_used_in_swift(classname, paths=swift_paths)
Expand Down

0 comments on commit 0fad1a8

Please sign in to comment.