Hi, I am delighted to see that my beloved music managing software is not just continuously maintained but has just been released in a brand new version.
I am still trying to figure out some things to make some things work like they used to work in MM4. I can't accomodate with the CaseChecker, however. I want words like "of", "a", "to" etc. to be written in lowercase. I know that the MM4-vbs-script included a variable "littleWordString" to this purpose. The same thing is present in the MM5-js-script (dglCaseChecker.js in MediaMonkey 5\Scripts\caseChecker\dialogs), yet these settings to not seem to come into effect.
I think I now figured out what the problem is. Apparently (?) Javascript treats RegularExpressions a little bit different like some other languages, in paricular when it comes to locating whitespaces. Line 46 in the code reads
Code: Select all
var whiteSpace = new RegExp("^[\s,&]+$");
Add another blackslash in front of the "s" like you see here in JS-references online, changing it to:
Code: Select all
var whiteSpace = new RegExp("^[\\s,&]+$");
Then the script seems to do what it did in MM4. However, I am absolutely no expert when it comes to Regular Expressions (actually, I prefer to run away whenever I see one). So could somebody confirm that this indeed is responsible for the JS and the VBS results diverging, and this being the proper fix?
Anyway, I'd love to see this fixed properly in a future update.
Hi, I am delighted to see that my beloved music managing software is not just continuously maintained but has just been released in a brand new version.
I am still trying to figure out some things to make some things work like they used to work in MM4. I can't accomodate with the CaseChecker, however. I want words like "of", "a", "to" etc. to be written in lowercase. I know that the MM4-vbs-script included a variable "littleWordString" to this purpose. The same thing is present in the MM5-js-script (dglCaseChecker.js in MediaMonkey 5\Scripts\caseChecker\dialogs), yet these settings to not seem to come into effect.
I think I now figured out what the problem is. Apparently (?) Javascript treats RegularExpressions a little bit different like some other languages, in paricular when it comes to locating whitespaces. Line 46 in the code reads
[code]
var whiteSpace = new RegExp("^[\s,&]+$");[/code]
Add another blackslash in front of the "s" like you see here in JS-references online, changing it to:
[code]
var whiteSpace = new RegExp("^[\\s,&]+$");[/code]
Then the script seems to do what it did in MM4. However, I am absolutely no expert when it comes to Regular Expressions (actually, I prefer to run away whenever I see one). So could somebody confirm that this indeed is responsible for the JS and the VBS results diverging, and this being the proper fix?
Anyway, I'd love to see this fixed properly in a future update.