Sha256: 7e5a35c10149459b66cc717bd6a0c402d67feb7e21e7a741a586005bf4b1d761

Contents?: true

Size: 540 Bytes

Versions: 1

Compression:

Stored size: 540 Bytes

Contents

/**
 * copied from core, since it's not in the ReactApp folder,
 * it's complicated to import it and mock it in tests.
 * should be imported once core moves it to the ReactApp folder.
 */
export const foremanUrl = path => `${window.URL_PREFIX}${path}`;

export const isNotRhelHost = ({ hostDetails }) =>
  // This regex tries matches sane variations of "RedHat", "RHEL" and "RHCOS"
  !new RegExp('red[\\s\\-]?hat|rh[\\s\\-]?el|rhc[\\s\\-]?os', 'i').test(
    // eslint-disable-next-line camelcase
    hostDetails?.operatingsystem_name
  );

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_rh_cloud-11.0.3 webpack/ForemanRhCloudHelpers.js