Skip to content

Commit

Permalink
support parse include of wxml fix #38
Browse files Browse the repository at this point in the history
  • Loading branch information
chemzqm committed Oct 24, 2016
1 parent f40bfcc commit 0e77e93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ exports.exists = function(p) {
}

exports.parseImports = function(xml) {
let re = /<import\s+[^>]+?>/g
let re = /<(import|include)\s+[^>]+?>/g
let res = []
let arr = []
while ((arr = re.exec(xml)) !== null) {
Expand Down

0 comments on commit 0e77e93

Please sign in to comment.