MOBILE-3708 core: Fix body class for 3.10 sites
parent
7dcfc4d989
commit
c887e8f0a9
|
@ -655,7 +655,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