mirror of https://github.com/hashicorp/consul
13 lines
285 B
JavaScript
13 lines
285 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { helper } from '@ember/component/helper';
|
|
|
|
import rightTrim from 'consul-ui/utils/right-trim';
|
|
|
|
export default helper(function ([str = '', search = ''], hash) {
|
|
return rightTrim(str, search);
|
|
});
|