Skip to content

Commit

Permalink
fix(angularls): trim leading characters from version #3610
Browse files Browse the repository at this point in the history
  • Loading branch information
mactep authored Feb 9, 2025
1 parent 5dca9e1 commit d956558
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/lspconfig/configs/angularls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ local function get_angular_core_version(root_dir)

local angular_core_version = json.dependencies['@angular/core']

angular_core_version = angular_core_version and angular_core_version:match('%d+%.%d+%.%d+')

return angular_core_version
end

Expand Down

0 comments on commit d956558

Please sign in to comment.