Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
deng-yc committed Nov 8, 2019
1 parent 28be6a8 commit ac130dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports = postcss.plugin('postcss-cos', opts => {
let uploadList = [];

root.walkDecls(/background|src/, decl => {
var matchs = decl.value.match(/url\(['|"](.+)['|"]\)/i);
var matchs = decl.value.match(/url\(['|"](.*?)['|"]\)/i);
if (matchs) {
var target_file = matchs[1].split('#')[0];

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postcss-cos",
"version": "0.0.8",
"version": "0.0.9",
"description": "postcss插件,将css中的background图片上传到腾讯云服务器",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit ac130dc

Please sign in to comment.