Skip to content

Commit

Permalink
Merge pull request #2 from WebFreak001/patch-1
Browse files Browse the repository at this point in the history
allow `-` in package name
  • Loading branch information
lempiji authored Oct 16, 2022
2 parents 215c4c0 + 2a30afd commit 939f8f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/commands/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ string loadCurrentProjectName()
{
import std.regex : ctRegex, matchFirst;

enum pattern = ctRegex!"^name \"(\\w+)\"$";
enum pattern = ctRegex!`^name "([-\w]+)"$`;
auto f = File("dub.sdl", "r");
foreach (line; f.byLine())
{
Expand Down

0 comments on commit 939f8f2

Please sign in to comment.