Skip to content

Commit

Permalink
style(eslint): remove useless escaping in regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinspecker committed Jan 22, 2017
1 parent ce97ab1 commit 86c045c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function (fileContents) {
throw new TypeError('Expected file contents to be a string')
}

const regex = /angular[\s]*[.]module[\(]?[\s]*'([^']*)'[^\)angular]*[\)]?/g
const regex = /angular[\s]*[.]module[(]?[\s]*'([^']*)'[^)angular]*[)]?/g

match = regex.exec(fileContents)
while (match && match[1]) {
Expand Down

0 comments on commit 86c045c

Please sign in to comment.