overextended/oxmysql

oxmysql v2.10.0 Unable to determine current resource version for 'oxmysql'

ChaiyaZ-Dev opened this issue · 3 comments

oxmysql v2.10.0
image
Unable to determine current resource version for 'oxmysql'

You can ignore it or update at your convenience.

Hello,

Thank you for looking into this. The issue appears to be related to the regular expression used to extract the version number from the metadata. The current pattern /(\d).(\d).(\d)/ only matches single digits between dots, which is why it fails for versions with multi-digit numbers like '2.10.0'.

To resolve this, the regex should be updated to /(\d+).(\d+).(\d+)/ to accommodate any number of digits in the version sections. This change would ensure that versions like '2.10.0' are properly recognized.

Here’s the updated line of code for your reference:

const currentVersion = (_a4 = GetResourceMetadata(resourceName2, "version", 0)) == null ? void 0 : _a4.match(/(\d+)\.(\d+)\.(\d+)/);

The issue appears to be related to the regular expression used to extract the version number from the metadata.

I already fixed this an hour ago and pushed the changes 68028f1.