Merge pull request #2597 from dpalou/MOBILE-3523
MOBILE-3523 core: Fix body class for 3.10 sitesmain
commit
a4b3bc0eed
|
@ -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