Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 67761f0

Browse files
Merge pull request #74 from dallonf/master
Fix non-relative pathname detection
2 parents 8cc4a29 + a8cd283 commit 67761f0

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

‎lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = function setupHook({
8484
*/
8585
function fetch(_to, from) {
8686
// getting absolute path to the processing file
87-
const filename = /\w/i.test(_to[0])
87+
const filename = /[^\\/?%*:|"<>\.]/i.test(_to[0])
8888
? require.resolve(_to)
8989
: resolve(dirname(from), _to);
9090

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"foo": "_test_tokens_cases_compose_node_module_source__foo _test_tokens_node_modules_awesome_theme_common__paragraph _test_tokens_node_modules_awesome_theme_oceanic__color"
2+
"foo": "_test_tokens_cases_compose_node_module_source__foo _test_tokens_node_modules_awesome_theme_common__paragraph _test_tokens_node_modules_awesome_theme_oceanic__color",
3+
"bar": "_test_tokens_cases_compose_node_module_source__bar _test_tokens_node_modules_privateorg_theme_common__button"
34
}

‎test/tokens/cases/compose-node-module/source.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22
{
33
composes: paragraph from 'awesome-theme/common.css';
44
}
5+
6+
.bar
7+
{
8+
composes: button from '@privateorg/theme/common.css';
9+
}

‎test/tokens/node_modules/@privateorg/theme/common.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /