summaryrefslogtreecommitdiff
path: root/bs
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-04-02 21:39:47 -0400
committerBen Sima <ben@bsima.me>2021-04-02 21:39:47 -0400
commite3a813d72449e738bd95323511ad0696719bf396 (patch)
treedee2ff6b3be3037559b703bbf15a1769c00a88a6 /bs
parent574da8a4d081d19fd7b8447dc616d43786ef5f51 (diff)
Init bizbot
Diffstat (limited to 'bs')
-rw-r--r--bs/re.scm6
-rw-r--r--bs/string.scm4
2 files changed, 6 insertions, 4 deletions
diff --git a/bs/re.scm b/bs/re.scm
index 2b5752b..a325249 100644
--- a/bs/re.scm
+++ b/bs/re.scm
@@ -19,8 +19,10 @@
(export match group sub search compile
;; I IGNORECASE M MULTILINE
)
- (import (rnrs base (6))
- (ice-9 regex))
+ (import (rnrs base)
+ ;; TODO: port to srfi-115
+ (only (ice-9 regex)
+ make-regexp))
;; (define I regexp/icase)
;; (define IGNORECASE regexp/icase)
diff --git a/bs/string.scm b/bs/string.scm
index 963525c..c6e6e31 100644
--- a/bs/string.scm
+++ b/bs/string.scm
@@ -19,8 +19,8 @@
(only (ice-9 ports) with-output-to-string))
;; Is `pre` a prefix of `s`?
- (define (prefix? s sub)
- (string-prefix? sub s))
+ (define (prefix? s pre)
+ (string-prefix? pre s))
;; Is `suf` a suffix of `s`?
(define (suffix? s suf)