about summary refs log tree commit diff stats
path: root/src/js
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-13 17:03:17 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-13 17:03:17 +0100
commit4b482418c22ea31729ca94583ffd2a6aa167d811 (patch)
tree9c456555f1b3cfd45d90f28d61d7369ab96e1c5d /src/js
parent672ab553c4a2b10a703ea40e049eda52db149a93 (diff)
downloadchawan-4b482418c22ea31729ca94583ffd2a6aa167d811.tar.gz
Fix stream error handling confusion, title display
Also probably other fixes.
Diffstat (limited to 'src/js')
-rw-r--r--src/js/regex.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/regex.nim b/src/js/regex.nim
index a4652373..391cb46b 100644
--- a/src/js/regex.nim
+++ b/src/js/regex.nim
@@ -109,6 +109,9 @@ proc `=copy`(dest: var Regex, source: Regex) =
     dest.buf = source.buf
     dest.plen = source.plen
 
+func `$`*(regex: Regex): string =
+  regex.buf
+
 proc compileRegex*(buf: string, flags: int): Option[Regex] =
   var regex: Regex
   var error_msg_size = 64