Skip to content

Commit 480c7f3

Browse files
committed
Merge pull request adobe#4761 from adobe/bchin/fix-prefs-clientid-on-windows
PreferencesManager's getClientID() Fails On 64-bit Windows
2 parents 40b1bc3 + 9bfaf46 commit 480c7f3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/preferences/PreferencesManager.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ define(function (require, exports, module) {
8989
var pathExp, pathUrl, clientID;
9090

9191
paths.some(function (path) {
92-
pathExp = new RegExp("^" + path);
93-
if (module.uri.match(pathExp)) {
92+
if (module.uri.toLocaleLowerCase().indexOf(path.toLocaleLowerCase()) === 0) {
9493
pathUrl = path;
9594
return true;
9695
}

0 commit comments

Comments
 (0)