Skip to content

Fix path/name quotation #2

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

Conversation

Mitko-Kerezov
Copy link

Those properties should be surrounded by quotation marks based on appearance of special characters in path and basename properties respectively.
They are independent of one another.
Includes unit tests as well as a newer nodeunit version as a dev dependency.
Ping @Fatme

0.6.4 has some unresolved issues which disallow running unit tests for this project
@@ -719,6 +719,9 @@ function pbxFileReferenceObj(file) {

if(!file.basename.match(/^[a-zA-Z0-9_\.\$]+\.[a-zA-Z]+$/)) {
obj.name = "\"" + obj.name + "\"";
}

if(!file.path.match(/^[a-zA-Z0-9_\.\$]+\.[a-zA-Z]+$/)) {
Copy link

Choose a reason for hiding this comment

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

You can extract the regex to separate variable.

@Fatme
Copy link

Fatme commented Jun 30, 2015

👍

Those properties should be surrounded by quotation marks based on appearance of special characters in path and basename properties respectively.
They are independent of one another.
@Mitko-Kerezov Mitko-Kerezov force-pushed the kerezov/fix-path-name-quotation branch from 9904125 to f879ed0 Compare June 30, 2015 15:06
@Mitko-Kerezov
Copy link
Author

Addressed comments by @Fatme

Fatme pushed a commit that referenced this pull request Jul 9, 2015
@Fatme Fatme merged commit 0f9ab43 into NativeScript:master Jul 9, 2015
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