Skip to content

Conversation

@notbdu
Copy link

@notbdu notbdu commented May 10, 2016

Sometimes the default profile name in the profiles.ini file for Firefox has numbers in it.

The default configuration on my computer was:

[General]
StartWithLastProfile=1

[Profile0]
Name=default-1461165984967
IsRelative=1
Path=Profiles/15xzltqw.default-1461165984967

I just changed the RegEx from /\nName=default\n/ to /\nName=default([\-0-9]*)?\n/ in order to match a number if one exists.

This fix will not break matching for when the config is just:

[General]
StartWithLastProfile=1

[Profile0]
Name=default
IsRelative=1
Path=Profiles/15xzltqw.default-1461165984967

…' string appended to it. (ie. Name=default-1461165984967).
@dkearns dkearns self-assigned this May 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants