remove last word
This commit is contained in:
@ -91,3 +91,8 @@ export function copyProjectLink(projectId) {
|
||||
`https://itguild.info/tracker/project/${projectId}`
|
||||
);
|
||||
}
|
||||
|
||||
export function removeLast(string) {
|
||||
let lastIndex = string.lastIndexOf(" ");
|
||||
return string.substring(0, lastIndex);
|
||||
}
|
||||
|
Reference in New Issue
Block a user