*** test/src/terminal-regex.h 2022-02-01 18:26:48.693559635 -0600 --- gnome-terminal-3.36.1.1/src/terminal-regex.h 2022-02-02 13:28:36.000000000 -0600 *************** *** 52,58 **** #define SCHEME "(?ix: news | telnet | nntp | https? | ftps? | sftp | webcal )" ! #define USERCHARS "-+_.[:alnum:]" /* Nonempty username, e.g. "john.smith" */ #define USER "[" USERCHARS "]+" --- 52,58 ---- #define SCHEME "(?ix: news | telnet | nntp | https? | ftps? | sftp | webcal )" ! #define USERCHARS "-+.[:alnum:]" /* Nonempty username, e.g. "john.smith" */ #define USER "[" USERCHARS "]+" *************** *** 100,110 **** * This macro defines both IPV4 and IPV6, since the latter one requires the former. */ #define IP_DEF IPV4_DEF S6_DEF "(?(DEFINE)(?(?x: (?: " IPV6_NULL " | " IPV6_LEFT " | " IPV6_MID " | " IPV6_RIGHT " | " IPV6_FULL " | (?: " IPV6V4_FULL " | " IPV6V4_LEFT " | " IPV6V4_MID " | " IPV6V4_RIGHT " ) (?&IPV4) ) (?! [.:[:xdigit:]] ) )))" ! /* Either an alphanumeric character or dash or underscore; or if [negative lookahead] not ASCII * then any graphical Unicode character. * A segment can consist entirely of numbers. * (Note: PCRE doesn't support character class subtraction/intersection.) */ ! #define HOSTNAMESEGMENTCHARS_CLASS "(?x: [_] | [-[:alnum:]] | (?! [[:ascii:]] ) [[:graph:]] )" /* A hostname of at least 1 component. The last component cannot be entirely numbers. * E.g. "foo", "example.com", "1234.com", but not "foo.123" */ --- 100,110 ---- * This macro defines both IPV4 and IPV6, since the latter one requires the former. */ #define IP_DEF IPV4_DEF S6_DEF "(?(DEFINE)(?(?x: (?: " IPV6_NULL " | " IPV6_LEFT " | " IPV6_MID " | " IPV6_RIGHT " | " IPV6_FULL " | (?: " IPV6V4_FULL " | " IPV6V4_LEFT " | " IPV6V4_MID " | " IPV6V4_RIGHT " ) (?&IPV4) ) (?! [.:[:xdigit:]] ) )))" ! /* Either an alphanumeric character or dash; or if [negative lookahead] not ASCII * then any graphical Unicode character. * A segment can consist entirely of numbers. * (Note: PCRE doesn't support character class subtraction/intersection.) */ ! #define HOSTNAMESEGMENTCHARS_CLASS "(?x: [-[:alnum:]] | (?! [[:ascii:]] ) [[:graph:]] )" /* A hostname of at least 1 component. The last component cannot be entirely numbers. * E.g. "foo", "example.com", "1234.com", but not "foo.123" */ *************** *** 129,138 **** #define PORT "(?x: \\:" N_1_65535 " )?" /* Omit the parentheses, see below */ ! #define PATHCHARS_CLASS "[-[:alnum:]\\Q$.+!*,:;@&=?/~#|%'\\E]" /* Chars to end a URL. Apostrophe only allowed if there wasn't one in front of the URL, see bug 448044 */ ! #define PATHTERM_CLASS "[-[:alnum:]\\Q$+*:@&=/~#|%'\\E]" ! #define PATHTERM_NOAPOS_CLASS "[-[:alnum:]\\Q$+*:@&=/~#|%\\E]" /* Recursive definition of PATH that allows parentheses and square brackets only if balanced, see bug 763980. */ #define PATH_INNER_DEF "(?(DEFINE)(?(?x: (?: " PATHCHARS_CLASS "* (?: \\( (?&PATH_INNER) \\) | \\[ (?&PATH_INNER) \\] ) )* " PATHCHARS_CLASS "* )))" --- 129,138 ---- #define PORT "(?x: \\:" N_1_65535 " )?" /* Omit the parentheses, see below */ ! #define PATHCHARS_CLASS "[-[:alnum:]\\Q_$.+!*,:;@&=?/~#|%'\\E]" /* Chars to end a URL. Apostrophe only allowed if there wasn't one in front of the URL, see bug 448044 */ ! #define PATHTERM_CLASS "[-[:alnum:]\\Q_$+*:@&=/~#|%'\\E]" ! #define PATHTERM_NOAPOS_CLASS "[-[:alnum:]\\Q_$+*:@&=/~#|%\\E]" /* Recursive definition of PATH that allows parentheses and square brackets only if balanced, see bug 763980. */ #define PATH_INNER_DEF "(?(DEFINE)(?(?x: (?: " PATHCHARS_CLASS "* (?: \\( (?&PATH_INNER) \\) | \\[ (?&PATH_INNER) \\] ) )* " PATHCHARS_CLASS "* )))"