Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the regular expressions #28

Merged
merged 2 commits into from
Dec 13, 2017
Merged

Updated the regular expressions #28

merged 2 commits into from
Dec 13, 2017

Conversation

clementpadovani
Copy link
Contributor

This primarily fixes false-positives for properties with import in their names

static let objcImport = ".*#.*(import|include).*[\",<].*[\",>]"
static let objcModuleImport = ".*@.*(import).*.;"
static let swiftModuleImport = ".*(import) +.*."
static let objcImport = "#(import|include).*[\",<].*[\",>]"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @clementpadovani, I think this should be #.*(import|include).*[\",<].*[\",>], because one can write
# import "Import.h".

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markohlebar I updated the regex to be #\s*(import|include).*[\",<].*[\",>] (see 2a8e2c3).

@markohlebar markohlebar merged commit 07b249f into markohlebar:master Dec 13, 2017
@clementpadovani clementpadovani deleted the hotfix/make_the_regular_expressions_great_again branch December 13, 2017 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants