Skip to content

Commit

Permalink
Fix 8 digit godot hexes but actually this time
Browse files Browse the repository at this point in the history
  • Loading branch information
Dpeta committed Jun 6, 2024
1 parent c3172a8 commit 344e7b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
<!-- When hosting on an actual web server the CSP should be more restrictive. (hash for script-src) -->

<link rel="preload" href="style.css" integrity="sha256-zAk62ZPjXKXNFeeDtF0CnMNh2RJ60HP8r4LgYzyK6tY=" as="style">
<link rel="preload" href="dist/pesterchum.js" integrity="sha256-BX4CVVknS8IgyaLkxrqxkKw81Xa0liYx75gt88baDKw=" as="script"> <!-- integrity hash without babel :3 -->
<link rel="preload" href="dist/pesterchum.js" integrity="sha256-cHf/yb/g+WWzlQen9Jz09fmQM7Xj0EYgHAPDfIHoxhc=" as="script"> <!-- integrity hash without babel :3 -->

<link rel="icon" href="favicon.ico">
<link rel="canonical" href="https://pesterchum.online">
<link rel="stylesheet" integrity="sha256-zAk62ZPjXKXNFeeDtF0CnMNh2RJ60HP8r4LgYzyK6tY=" href="style.css">
<script src="dist/pesterchum.js" integrity="sha256-BX4CVVknS8IgyaLkxrqxkKw81Xa0liYx75gt88baDKw=" defer></script>
<script src="dist/pesterchum.js" integrity="sha256-cHf/yb/g+WWzlQen9Jz09fmQM7Xj0EYgHAPDfIHoxhc=" defer></script>

<title>Pesterchum Online</title>
</head>
Expand Down
2 changes: 1 addition & 1 deletion src/pesterchum.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const _ctagRgb = /(\d+,\d+,\d+)/g
const _ctagHex = /#([a-fA-F0-9]{6})|(#[a-fA-F0-9]{3})/g
const _ctagHexSingle = /#([a-fA-F0-9]{6})|(#[a-fA-F0-9]{3})/ // This contains the bogwitch
const _ctagRgbHex = /(\d+,\d+,\d+)|(#([a-fA-F0-9]{6})|(#[a-fA-F0-9]{3}))/g
const _ctagEvilGodot = /(<|&#60;)c=#FF([a-fA-F0-9]{6})(>|&#62;)/g // Godot sends ARGB instead of RGB, so we strip the FF at the start later.
const _ctagEvilGodot = /(<|&#60;)c=#[a-zA-Z]{2}([a-fA-F0-9]{6})(>|&#62;)/g // Godot sends ARGB instead of RGB, so we strip the FF at the start later.
const _colorMsg = /^COLOR (>|&#62;)(\d+,\d+,\d+)$/
// const _colorMsgRgb = /\d+,\d+,\d+/
const _memoMsgStart = /^((<|&#60;)c=((\d+,\d+,\d+)|(#([a-fA-F0-9]{6})|(#[a-fA-F0-9]{3})))(>|&#62;)[A-Z]*[A-Z]*:\s)/g
Expand Down

0 comments on commit 344e7b2

Please sign in to comment.