Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
LOCKEDVERSION regex improvement
  • Loading branch information
eiriktsarpalis committed Dec 22, 2017
commit b6acebb62ce53a312884e0674e52e20cdea51bea
2 changes: 1 addition & 1 deletion src/Paket.Core/PaketConfigFiles/TemplateFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ module internal TemplateFile =
| None -> failwithf "The template file %s contains the placeholder CURRENTVERSION, but no version was given." fileName

elif s.Contains "LOCKEDVERSION" then
let groupRegex = Regex("LOCKEDVERSION-(?<group>.+)")
let groupRegex = Regex("LOCKEDVERSION-(?<group>\w+)")
let replaceGroup (m : Match) =
let groupName = GroupName m.Groups.["group"].Value
match lockFile.Groups |> Map.tryFind groupName with
Expand Down