Skip to content

Conversation

@raerpo
Copy link
Collaborator

@raerpo raerpo commented May 4, 2019

Pequeño cambio para evitar asignar karma cuando se agrega código.

Cualquier cosa que este dentro ` (backtick) va a ser escapada de la asignación de karma.

TLDR; No más no encuentro al usuario c++

@juanbrujo juanbrujo requested review from gmq and lgaticaq May 6, 2019 19:02
@gmq
Copy link
Member

gmq commented May 7, 2019

No funciona si hay un karma fuera de los code blocks igual al que está adentro
c++ c++

const findTextInsideCodeBlocks = message => {
const regex = /`(.*?)`/g
let matches = []
let match
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cual es el beneficio de este let?

Comment on lines +166 to +168
while ((match = regex.exec(message)) !== null) {
matches.push(match[0])
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no sería mejor usar un mecanismo tipo optional para esto?

Encuentro que darle con el while es como darse muchas vueltas

@gmq gmq force-pushed the master branch 3 times, most recently from fde96ef to d12d3d6 Compare October 18, 2021 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants