1b5975d6bSopenharmony_ciFrom 664ee9ca6afcc3e08c99f0918982e9d2e22f34a8 Mon Sep 17 00:00:00 2001
2b5975d6bSopenharmony_ciFrom: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
3b5975d6bSopenharmony_ciDate: Fri, 23 Sep 2022 15:27:49 +0200
4b5975d6bSopenharmony_ciSubject: [PATCH] gregex: Drop explanation G_REGEX_JAVASCRIPT_COMPAT
5b5975d6bSopenharmony_ci
6b5975d6bSopenharmony_ciIt's not supported as of glib 2.74
7b5975d6bSopenharmony_ci
8b5975d6bSopenharmony_ciConflict:NA
9b5975d6bSopenharmony_ciReference:https://gitlab.gnome.org/GNOME/glib/-/commit/664ee9ca6afcc3e08c99f0918982e9d2e22f34a8
10b5975d6bSopenharmony_ci
11b5975d6bSopenharmony_ci---
12b5975d6bSopenharmony_ci glib/gregex.c | 12 ------------
13b5975d6bSopenharmony_ci 1 file changed, 12 deletions(-)
14b5975d6bSopenharmony_ci
15b5975d6bSopenharmony_cidiff --git a/glib/gregex.c b/glib/gregex.c
16b5975d6bSopenharmony_ciindex 6b22f1f151..50abeee89f 100644
17b5975d6bSopenharmony_ci--- a/glib/gregex.c
18b5975d6bSopenharmony_ci+++ b/glib/gregex.c
19b5975d6bSopenharmony_ci@@ -89,18 +89,6 @@
20b5975d6bSopenharmony_ci  * unescaped "#" outside a character class is encountered. This indicates
21b5975d6bSopenharmony_ci  * a comment that lasts until after the next newline.
22b5975d6bSopenharmony_ci  *
23b5975d6bSopenharmony_ci- * When setting the %G_REGEX_JAVASCRIPT_COMPAT flag, pattern syntax and pattern
24b5975d6bSopenharmony_ci- * matching is changed to be compatible with the way that regular expressions
25b5975d6bSopenharmony_ci- * work in JavaScript. More precisely, a lonely ']' character in the pattern
26b5975d6bSopenharmony_ci- * is a syntax error; the '\x' escape only allows 0 to 2 hexadecimal digits, and
27b5975d6bSopenharmony_ci- * you must use the '\u' escape sequence with 4 hex digits to specify a unicode
28b5975d6bSopenharmony_ci- * codepoint instead of '\x' or 'x{....}'. If '\x' or '\u' are not followed by
29b5975d6bSopenharmony_ci- * the specified number of hex digits, they match 'x' and 'u' literally; also
30b5975d6bSopenharmony_ci- * '\U' always matches 'U' instead of being an error in the pattern. Finally,
31b5975d6bSopenharmony_ci- * pattern matching is modified so that back references to an unset subpattern
32b5975d6bSopenharmony_ci- * group produces a match with the empty string instead of an error. See
33b5975d6bSopenharmony_ci- * pcreapi(3) for more information.
34b5975d6bSopenharmony_ci- *
35b5975d6bSopenharmony_ci  * Creating and manipulating the same #GRegex structure from different
36b5975d6bSopenharmony_ci  * threads is not a problem as #GRegex does not modify its internal
37b5975d6bSopenharmony_ci  * state between creation and destruction, on the other hand #GMatchInfo
38b5975d6bSopenharmony_ci-- 
39b5975d6bSopenharmony_ciGitLab
40b5975d6bSopenharmony_ci
41