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

fix(css): processPath should return path to file #124

Merged
merged 1 commit into from
Oct 25, 2016
Merged

Conversation

blond
Copy link
Member

@blond blond commented Oct 24, 2016

The correct path to the file is needed to read or obtain stats.

Before changes the processPath method deletes ? symbol, but not
query part.

Example:

pathname?x=1

Result before changes:

pathnamex=1

Result after changes:

path

The same method did not remove the hash part:

Example:

path#hash

Result before changes:

path#hash

Result after changes:

path

processPath was added in 4267461 commit to:

Strip the query part of a link before reading a file from disk

@blond blond added the bug label Oct 24, 2016
@blond
Copy link
Member Author

blond commented Oct 24, 2016

/сс @tadatuta @arikon

@tadatuta
Copy link
Member

LGTM

Copy link

@rndD rndD left a comment

Choose a reason for hiding this comment

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

ok

@@ -56,7 +58,7 @@ exports.Tech = base.Tech.inherit({
range: [m.index, allRe.lastIndex - 1]
});
} else if (srcStringRx.test(m[0])) {
// src=...
// src=...
Copy link

Choose a reason for hiding this comment

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

а этот коммент вообще нужен =)?

Copy link
Member Author

Choose a reason for hiding this comment

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

лол, прекрасный коммент )

Copy link
Member Author

Choose a reason for hiding this comment

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

Хотя нет, он полезный.

Это про то, во что превратится файл после обработки. В url(...) или src=....

Copy link

Choose a reason for hiding this comment

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

Ну он полезный. Но лучше сделать его чуть более понятным.

The correct path to the file is needed to read or obtain stats.

Before changes the `processPath` method deletes `?` symbol, but not
query part.

**Example:**

```
pathname?x=1
```

**Result before changes:**

```
pathnamex=1
```

**Result after changes:**

```
path
```

The same method did not remove the `hash` part:

**Example:**

```
path#hash
```

**Result before changes:**

```
path#hash
```

**Result after changes:**

```
path
```
@blond blond merged commit 0f80fc9 into master Oct 25, 2016
@blond blond deleted the fix/css-path-process branch October 25, 2016 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants