Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/treetrek.git

Removes logging

AuthorDave Jarvis <email>
Date2026-02-15 13:07:54 GMT-0800
Commitcc3cb5fafe430e696b56a07cf3df5b4fb689da83
Parent7e4137e
render/Highlighter.php
$combined = '~' . implode( '|', $patterns ) . '~msu';
- // --- DEBUG START ---
- if (strpos($this->content, 'DialogBox') !== false) {
- echo "<div style='background: #333; color: #fff; padding: 10px; white-space: pre-wrap;'>";
- echo "<strong>Detected Language:</strong> " . htmlspecialchars($this->lang) . "\n";
- echo "<strong>Keyword Rule:</strong> " . htmlspecialchars($this->rules['keyword'] ?? 'NONE') . "\n";
- echo "<strong>Combined Regex:</strong> " . htmlspecialchars($combined) . "\n";
- echo "</div>";
- }
- // --- DEBUG END ---
-
$result = preg_replace_callback( $combined, function( $matches ) {
foreach( $matches as $key => $value ) {
Delta0 lines added, 10 lines removed, 10-line decrease