Merge pull request #2597 from dpalou/MOBILE-3523

MOBILE-3523 core: Fix body class for 3.10 sites
main
Juan Leyva 2020-11-10 15:09:24 +01:00 committed by GitHub
commit a4b3bc0eed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -982,7 +982,7 @@ export class CoreSitesProvider {
* @return Release number or empty.
*/
getReleaseNumber(rawRelease: string): string {
const matches = rawRelease.match(/^\d(\.\d(\.\d+)?)?/);
const matches = rawRelease.match(/^\d+(\.\d+(\.\d+)?)?/);
if (matches) {
return matches[0];
}