1
0

fix looping if there is partial match in base class

This commit is contained in:
GenZmeY 2022-09-02 16:06:41 +03:00
parent 3efdb9f4d1
commit cd658d9af9

View File

@ -337,7 +337,7 @@ function init ()
else
BaseListNext="$BaseListNext $Class"
fi
done < <(grep -rihPo "\s.+extends\s${Base}" "${MutSource}/${Package}" | awk '{ print $1 }')
done < <(grep -rihPo "\s.+extends\s${Base}(\W|$)" "${MutSource}/${Package}" | awk '{ print $1 }')
done
done
BaseList="$BaseListNext"
@ -368,7 +368,7 @@ function init ()
else
BaseListNext="$BaseListNext $Class"
fi
done < <(grep -rihPo "\s.+extends\s${Base}" "${MutSource}/${Package}" | awk '{ print $1 }')
done < <(grep -rihPo "\s.+extends\s${Base}(\W|$)" "${MutSource}/${Package}" | awk '{ print $1 }')
done
done
BaseList="$BaseListNext"