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

Resolved #1508 Adding cli namespace normalizer. #2190

Merged
merged 2 commits into from Nov 18, 2019
Merged

Resolved #1508 Adding cli namespace normalizer. #2190

merged 2 commits into from Nov 18, 2019

Conversation

@mehmetuken mehmetuken changed the title Resolve #1508 Adding cli namespace normalizer. Resolved #1508 Adding cli namespace normalizer. Nov 17, 2019
@hikalkan hikalkan added this to the 1.1 milestone Nov 17, 2019
return value;
}

value = Regex.Replace(value, @"(^\s+|\s+$)", "");
Copy link
Member

Choose a reason for hiding this comment

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

I think "String.Trim()" does the same job and much easier to understand than a regex.

@@ -40,6 +41,7 @@ public CommandLineArgs Parse(string[] args)

if (!argumentList.Any())
{
target = NamespaceHelper.NormalizeNamespace(target);
Copy link
Member

Choose a reason for hiding this comment

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

This normalizing should be done only when 'target' must fit the project name regex. If you make this normalization here, any command which is not related to project name regex will be effected.

So this normalization has to be moved to commands which takes a project name as 'target'.

@yekalkan yekalkan merged commit d7d3f6d into abpframework:dev Nov 18, 2019
@mehmetuken mehmetuken deleted the cli-normalize-namespace branch November 18, 2019 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants