Skip to content

Commit cc3053d

Browse files
committed
Conflict fixed on "Catastrophic backtracking" page in french language
1 parent e0bb6ec commit cc3053d

File tree

1 file changed

+2
-6
lines changed
  • 9-regular-expressions/15-regexp-catastrophic-backtracking

1 file changed

+2
-6
lines changed

9-regular-expressions/15-regexp-catastrophic-backtracking/article.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,7 @@ alert( "JavaScript".match(/(?=(\w+))\1Script/)); // null
282282
Nous pouvons mettre une expression régulière plus complexe dans `pattern:(?=(\w+))\1` au lieu de `pattern:\w`, lorsque nous devons interdire la rétroaction pour `pattern:+` après.
283283

284284
```smart
285-
<<<<<<< HEAD
286-
Il y a plus d'informations sur la relation entre les quantificateurs possessifs et lookahead dans les articles [Regex: Emulate Atomic Grouping (and Possessive Quantifiers) with LookAhead](http://instanceof.me/post/52245507631/regex-emulate-atomic-grouping-with-lookahead) et [Mimicking Atomic Groups](http://blog.stevenlevithan.com/archives/mimic-atomic-groups).
287-
=======
288-
There's more about the relation between possessive quantifiers and lookahead in articles [Regex: Emulate Atomic Grouping (and Possessive Quantifiers) with LookAhead](https://instanceof.me/post/52245507631/regex-emulate-atomic-grouping-with-lookahead) and [Mimicking Atomic Groups](https://blog.stevenlevithan.com/archives/mimic-atomic-groups).
289-
>>>>>>> 5dff42ba283bce883428c383c080fa9392b71df8
285+
Il y a plus d'informations sur la relation entre les quantificateurs possessifs et lookahead dans les articles [Regex: Emulate Atomic Grouping (and Possessive Quantifiers) with LookAhead](https://instanceof.me/post/52245507631/regex-emulate-atomic-grouping-with-lookahead) et [Mimicking Atomic Groups](https://blog.stevenlevithan.com/archives/mimic-atomic-groups).
290286
```
291287

292288
Réécrivons le premier exemple en utilisant lookahead pour éviter la rétroaction :
@@ -318,4 +314,4 @@ Le problème décrit dans cet article est appelé "rétroaction catastrophique".
318314

319315
Nous avons couvert deux façons de le résoudre:
320316
- Réécrivez l'expression régulière pour réduire le nombre de combinaisons possibles.
321-
- Empêcher la rétroaction.
317+
- Empêcher la rétroaction.

0 commit comments

Comments
 (0)