Skip to content

Commit

Permalink
fix local regex
Browse files Browse the repository at this point in the history
  • Loading branch information
fcannizzaro committed Nov 22, 2018
1 parent 34031ca commit 0cd420f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"1.3.0": "messages/1.3.0.md",
"1.4.0": "messages/1.4.0.md",
"1.4.1": "messages/1.4.1.md",
"1.4.2": "messages/1.4.2.md"
"1.4.2": "messages/1.4.2.md",
"1.4.3": "messages/1.4.3.md"
}
2 changes: 2 additions & 0 deletions messages/1.4.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
### Changelog
- fix regex local modules
2 changes: 1 addition & 1 deletion npm-install.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

package_settings = sublime.load_settings('NpmInstall.sublime-settings')

MODULE = r'.*(?:import.*?from.*?|require\()[\"\'](.+[^\"\'\/\n]*)?[\"\']\)?.*'
MODULE = r'.*(?:import.*?from.*?|require\()[\"\']([^.].+[^\"\'\/\n]*)?[\"\']\)?.*'
ICON = "Packages/npm-install/icon-%s.png"
data, prev, root, progress = {}, {}, {}, {}

Expand Down

0 comments on commit 0cd420f

Please sign in to comment.