Skip to content

Feature/excludes#49

Merged
niemyjski merged 3 commits intomasterfrom
feature/excludes
May 4, 2016
Merged

Feature/excludes#49
niemyjski merged 3 commits intomasterfrom
feature/excludes

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