mirror of
https://gitea.com/Lydanne/issues-helper.git
synced 2025-08-19 18:25:58 +08:00
17 lines
244 B
JavaScript
17 lines
244 B
JavaScript
function dealInput (para) {
|
|
let arr = [];
|
|
if (para) {
|
|
const paraArr = para.split(',');
|
|
paraArr.forEach(it => {
|
|
if(it.trim()){
|
|
arr.push(it.trim())
|
|
}
|
|
})
|
|
}
|
|
return arr;
|
|
};
|
|
|
|
module.exports = {
|
|
dealInput,
|
|
};
|