Skip to content

Commit

Permalink
fix(composer): match exactly the extension name
Browse files Browse the repository at this point in the history
  • Loading branch information
EtienneM committed Jun 18, 2024
1 parent c0b0467 commit c7a0668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/composer
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function is_embedded_extension() {
[ ${rc} -ne 0 ] && \
error "error while trying to identify if ${extension_name} is embedded in runtime: ${php_modules} (${rc})."

if echo "${php_modules}" | grep --quiet --ignore-case "${extension_name}" ; then
if echo "${php_modules}" | grep --quiet --extended-regexp --ignore-case "^${extension_name}$" ; then
echo "true"
else
echo "false"
Expand Down

0 comments on commit c7a0668

Please sign in to comment.