Skip to content

Commit

Permalink
Merge branch '24_2' of https://github.com/DevExpress/DevExtreme into …
Browse files Browse the repository at this point in the history
…24_2-multiview-integrate-visibility-in-kbn
  • Loading branch information
nikkithelegendarypokemonster committed Oct 7, 2024
2 parents 4eca083 + 3cab76c commit 3fd3740
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/devextreme-monorepo-tools/src/version-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ export function validateVersion(version: string | undefined): string {
}

export function formatVersion(version: string | undefined): string | undefined {
if (version?.length && version.length > 1000) {
throw new Error("version string is too long");
}

return version?.match(/(\d+\.\d+\.\d+)(\D|$)/)?.[1];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ require('http').createServer(function(request, response) {
const info = getRequestInfo(request.url);
const action = actions[info.action];
response.writeHead(200, { 'Content-Type': 'text/plain' });
if(action) {
if(action && typeof action === 'function') {
action(info.arg, callback);
}
function callback(data) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ QUnit.test('Send data with request (cached resources)', function(assert) {
// https://github.com/jquery/jquery/issues/2658
if(compareVersion($.fn.jquery, [3], 1) < 0) {
if(testData[i].requestBody) {
testData[i].requestBody = testData[i].requestBody.replace('%20', '+');
testData[i].requestBody = testData[i].requestBody.replace(/%20/g, '+');
}
testData[i].url = testData[i].url.replace('%20', '+');
testData[i].url = testData[i].url.replace(/%20/g, '+');
}
assert.equal(this.requests[i].url, testData[i].url, 'url for element ' + i + ' from test data');
assert.equal(this.requests[i].requestBody, testData[i].requestBody, 'requestBody for element ' + i + ' from test data');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const LOADINDICATOR_IMAGE = 'dx-loadindicator-image';

const isIdenticalNamesInUrl = function(firstUrl, secondUrl) {
let firstName = firstUrl.split('/');
firstName = firstName[firstName.length - 1].replace(')', '').replace('"', '');
firstName = firstName[firstName.length - 1].replace(/\)/g, '').replace(/"/g, '');
let secondName = secondUrl.split('/');
secondName = secondName[secondName.length - 1];
return firstName === secondName;
Expand Down

0 comments on commit 3fd3740

Please sign in to comment.