This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |