2020-03-24 23:22:16 +00:00
|
|
|
export default function escapeTaskName(taskName) {
|
|
|
|
// Regular expression is taken from here: https://stackoverflow.com/a/20053121
|
2021-02-09 15:33:48 +00:00
|
|
|
return taskName.replace(/[^a-zA-Z0-9,._+@%/-]/gu, '\\$&');
|
2020-03-24 23:22:16 +00:00
|
|
|
}
|