MOBILE-3523 core: Fix body class for 3.10 sites
parent
0cf2b3c74e
commit
93c8c157bf
|
@ -982,7 +982,7 @@ export class CoreSitesProvider {
|
||||||
* @return Release number or empty.
|
* @return Release number or empty.
|
||||||
*/
|
*/
|
||||||
getReleaseNumber(rawRelease: string): string {
|
getReleaseNumber(rawRelease: string): string {
|
||||||
const matches = rawRelease.match(/^\d(\.\d(\.\d+)?)?/);
|
const matches = rawRelease.match(/^\d+(\.\d+(\.\d+)?)?/);
|
||||||
if (matches) {
|
if (matches) {
|
||||||
return matches[0];
|
return matches[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue