Skip to content

Commit

Permalink
fix: issue 1
Browse files Browse the repository at this point in the history
  • Loading branch information
炒饭 committed Aug 29, 2017
1 parent 9f55bcb commit 1cb8f5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var defaultConfig = {
};
function gulpPx2Rpx (options) {
options = extend({}, defaultConfig, options);
var reg = new RegExp('([\\d.]+)' + options.replaceUnit, 'g');
var reg = new RegExp('([\\d.]*\\d)' + options.replaceUnit, 'g');
var ratio = options.wxappScreenWidth / options.screenWidth;
var remPrecision = options.remPrecision;
function getValue(val) {
Expand Down

1 comment on commit 1cb8f5b

@lbqdly
Copy link

@lbqdly lbqdly commented on 1cb8f5b Aug 30, 2017

Choose a reason for hiding this comment

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

像这样的 ".p-10px "classname任然不能被匹配。

Please sign in to comment.