Replaces the substring operation to find project type with a regex. The regex is a bit complex, so I added a comment explaining it. Resolves #1382
Replaces the substring operation to find project type with a regex. The regex is a bit complex, so I added a comment explaining it. Resolves #1382