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

8 lines
184 B
JavaScript

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