Skip to content

Feature/excludes #49

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

Merged
merged 3 commits into from
May 4, 2016
Merged

Feature/excludes #49

merged 3 commits into from
May 4, 2016

Conversation

niemyjski
Copy link
Member

No description provided.


// check for wildcard match
for (let key in settings) {
if (Utils.startsWith(key.toLowerCase(), sourcePrefix.toLowerCase()) && Utils.isMatch(source, [key.substring(sourcePrefix.length)])) {
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't seem like this would handle the same wildcard patterns as the .NET client. In the .NET client the pattern can start with an * which will match based on suffix, end with a * which will match based on prefix, start and end with a * which will do a substring match or it can just be a * which will match everything.

Copy link
Member

Choose a reason for hiding this comment

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

Do you have any unit tests that make sure this is working?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, Utils.IsMatch does the same thing and we have unit tests for it.

@niemyjski niemyjski merged commit c057cf0 into master May 4, 2016
@niemyjski niemyjski deleted the feature/excludes branch May 4, 2016 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants