Skip to content

Commit

Permalink
Make groups non-capturing.
Browse files Browse the repository at this point in the history
Co-Authored-By: Jordan Harband <ljharb@gmail.com>
  • Loading branch information
christophercurrie and ljharb committed May 12, 2019
1 parent aa290bb commit 288cedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/unambiguous.js
Expand Up @@ -18,7 +18,7 @@ exports.test = function isMaybeUnambiguousModule(content) {
}

// future-/Babel-proof at the expense of being a little loose
const unambiguousNodeType = /^(((Exp|Imp)ort.*Declaration)|TSExportAssignment)$/
const unambiguousNodeType = /^(?:(?:Exp|Imp)ort.*Declaration|TSExportAssignment)$/

/**
* Given an AST, return true if the AST unambiguously represents a module.
Expand Down

0 comments on commit 288cedf

Please sign in to comment.