Skip to content

Commit

Permalink
Adjust max length for decimal/numeric entities.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Mar 24, 2019
1 parent 36eca58 commit 7e30a96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/RegexHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ final class RegexHelper
const LINK_TITLE = 26;

// Partial regular expressions (wrap with `/` on each side before use)
const PARTIAL_ENTITY = '&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});';
const PARTIAL_ENTITY = '&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});';
const PARTIAL_ESCAPABLE = '[!"#$%&\'()*+,.\/:;<=>?@[\\\\\]^_`{|}~-]';
const PARTIAL_ESCAPED_CHAR = '\\\\' . self::PARTIAL_ESCAPABLE;
const PARTIAL_IN_DOUBLE_QUOTES = '"(' . self::PARTIAL_ESCAPED_CHAR . '|[^"\x00])*"';
Expand Down

0 comments on commit 7e30a96

Please sign in to comment.