Skip to content

Commit

Permalink
what do you mean hex colors can have numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Dpeta committed Jun 6, 2024
1 parent 344e7b2 commit 9ab4816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 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-cHf/yb/g+WWzlQen9Jz09fmQM7Xj0EYgHAPDfIHoxhc=" as="script"> <!-- integrity hash without babel :3 -->
<link rel="preload" href="dist/pesterchum.js" integrity="sha256-qMZIXq1I1Qfx75rtFc/+hVNEnoIDT43ez1etJL0xu5Q=" 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-cHf/yb/g+WWzlQen9Jz09fmQM7Xj0EYgHAPDfIHoxhc=" defer></script>
<script src="dist/pesterchum.js" integrity="sha256-qMZIXq1I1Qfx75rtFc/+hVNEnoIDT43ez1etJL0xu5Q=" defer></script>

<title>Pesterchum Online</title>
</head>
Expand All @@ -57,7 +57,7 @@ <h1 class='no-centertxt no-pixelated'>
<p>An online Pesterchum client! Not to be confused with the previous pco(s) which shut down. This isn't a fully-fledged replacement for <a href="https://github.com/Dpeta/pesterchum-alt-servers/releases">the desktop client</a>, mostly just to be an alternate way to still chat with people on it :3</p>
<p>Now up on <a href="https://github.com/Dpeta/PesterchumOnlineButSilly">GitHub</a> and under the <a href="agpl-3.0-standalone.html">AGPL</a>,</p>
<p class="pixelated"> woo yeah woo yeah <img src="smilies/3_big.gif"> </p>
<footer class='centertxt'>Last update: 2024-06-01</footer>
<footer class='centertxt'>Last update: 2024-06-06</footer>
<div id="notice"><!--<a href="javascript.html" rel="jslicense">JavaScript license information</a> --><img src="img/agplv3-155x51.png"></div>
</div>
<div class='centered border-radius-effect'>
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=#[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 _ctagEvilGodot = /(<|&#60;)c=#[a-fA-F0-9]{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 9ab4816

Please sign in to comment.