Skip to content

Commit 2c51def

Browse files
committed
Merge pull request macropodhq#5 from tonyhb/patch-1
Allow numbers in variable names
2 parents c909e16 + ee9dba2 commit 2c51def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = postcss.plugin('postcss-local-constants', function (opts) {
77
var sets = opts && opts.defaults || {};
88
var globalNode;
99

10-
var regex = /((?:[A-z]+))( )(from)(\s+)(~)((?:[A-z]+))/g;
10+
var regex = /((?:[\w]+))( )(from)(\s+)(~)((?:[A-z]+))/g;
1111

1212
var getConstants = function(name, path, directory) {
1313
var res = resolve.sync(JSON.parse(path), { basedir: nodepath.dirname(directory) });

0 commit comments

Comments
 (0)