Skip to content

Commit 151ff58

Browse files
dGrammatikowilsonge
authored andcommitted
fix dos (#21627)
1 parent 884e565 commit 151ff58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/build-modules-js/build-check.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ const buildCheck = (options) => {
3737

3838
// Build the variables into json for the unsupported page
3939
if (languageStrings.MIN_PHP_ERROR_LANGUAGE) {
40-
const name = file.replace('.ini', '').replace(/.+\//, '');
40+
const name = file.replace('.ini', '').replace(/.+\//, '').replace(/.+\\/, '');
4141
unsupported += `"${name}":{"language":"${languageStrings.MIN_PHP_ERROR_LANGUAGE}","header":"${languageStrings.MIN_PHP_ERROR_HEADER}","text1":"${languageStrings.MIN_PHP_ERROR_TEXT}","help-url-text":"${languageStrings.MIN_PHP_ERROR_URL_TEXT}"},`;
4242
}
4343

4444
// Build the variables into json for the unsupported page
4545
if (languageStrings.BUILD_INCOMPLETE_LANGUAGE) {
46-
const name = file.replace('.ini', '').replace(/.+\//, '');
46+
const name = file.replace('.ini', '').replace(/.+\//, '').replace(/.+\\/, '');
4747
incomplete += `"${name}":{"language":"${languageStrings.BUILD_INCOMPLETE_LANGUAGE}","header":"${languageStrings.BUILD_INCOMPLETE_HEADER}","text1":"${languageStrings.BUILD_INCOMPLETE_TEXT}","help-url-text":"${languageStrings.BUILD_INCOMPLETE_URL_TEXT}"},`;
4848
}
4949
});

0 commit comments

Comments
 (0)