Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 8e9bc64

Browse files
committed
updated regex used to sort packages
1 parent ea95e55 commit 8e9bc64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/snippets.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ module.exports = {
218218
loadPackageSnippets (callback) {
219219
const disabledPackageNames = atom.config.get('core.packagesWithSnippetsDisabled') || []
220220
const packages = atom.packages.getLoadedPackages().sort((pack, _) => {
221-
return /\/app\.asar\/node_modules\//.test(pack.path) ? -1 : 1
221+
return /\/node_modules\//.test(pack.path) ? -1 : 1
222222
})
223223

224224
const snippetsDirPaths = []

0 commit comments

Comments
 (0)