Skip to content

Commit a151881

Browse files
committed
Fix character group for package target
No need to exclude `[` or `]`.
1 parent 56f84e7 commit a151881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/importmap/npm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def vendored_packages_without_version(packages_with_versions)
147147
end
148148

149149
def find_unversioned_vendored_package(line, versioned_packages)
150-
regexp = line.include?("to:")? /#{PIN_REGEX}to: ["']([^["']]*)["'].*/ : PIN_REGEX
150+
regexp = line.include?("to:")? /#{PIN_REGEX}to: ["']([^"']*)["'].*/ : PIN_REGEX
151151
match = line.match(regexp)
152152

153153
return unless match

0 commit comments

Comments
 (0)