Closed iam-Shashank closed 6 years ago
That is used to find the links between passages, by finding anything which looks like either [[link text]] or [[link text|passage name]] (the second format is what allows multiple links to go to the same passage or just for the passage name to not be the same as the link text).
@iam-Shashank did @gadgetchnnel answer your question? If not, please reopen the issue.
Yeah, answered.
const linksRegex = /\[\[([^\|\]]*)\|?([^\]]*)\]\]/g;
this is mentioned 14 times in index.js . what does it do? https://github.com/alexa/skill-sample-nodejs-adventure-game/blob/master/lambda/custom/index.jsIs this similar to
displayableText = displayableText.replace(/<\/?[^>]+(>|$)/g, "");
What's the purpose of this line? this was mentioned in step 6 of Challenges in https://github.com/alexa/skill-sample-nodejs-adventure-game/blob/master/instructions/5-customization.md