open-vault/ui/app/helpers/dot-to-dash.js

8 lines
184 B
JavaScript
Raw Normal View History

import { helper as buildHelper } from '@ember/component/helper';
export function dotToDash([string]) {
return string.replace(/\./gi, '-');
}
export default buildHelper(dotToDash);