Skip to content

Commit bb5b724

Browse files
authored
fix(framework): Fix openui5 css varaibles detection (#1933)
Change the regex to detect the openui5 CSS variables properly as from 1.79 the CSS Variables filename has changed to css_variables.css (previously css-varaibles.css with dash). But, the script will match the old name with "-" dash as well, if we need to support it, otherwise we can leave "_" only to support the latest name. FIXES: #1932
1 parent 8cb7c48 commit bb5b724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/base/src/features/OpenUI5Support.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const cssVariablesLoaded = () => {
7575
return;
7676
}
7777

78-
return !!link.href.match(/\/css-variables\.css/);
78+
return !!link.href.match(/\/css(-|_)variables\.css/);
7979
};
8080

8181
const OpenUI5Support = {

0 commit comments

Comments
 (0)