Skip to content

Instantly share code, notes, and snippets.

// Zapier task: "Add RM # to Asana task from PR title"
// This is the exact code used in the Zapier step.
const { taskTitle, taskNotes} = inputData;
// match 5 or more digit characters
const extractRMNum = (taskTitle) => {
const result = taskTitle.match(/\d{5,}/);
if (result) return result[0];
return null;