Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wrong regex check against $_ #1271

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Dancer2/Core/App.pm
Expand Up @@ -71,7 +71,7 @@ sub _with_plugin {
# short plugin names get Dancer2::Plugin:: prefix
# plugin names starting with a '+' are full package names
if ( $plugin !~ s/^\+// ) {
$plugin =~ s/^/Dancer2::Plugin::/ unless /^Dancer2::Plugin::/;
$plugin =~ s/^(?!Dancer2::Plugin::)/Dancer2::Plugin::/;
}

# check if it's already there
Expand Down