summaryrefslogtreecommitdiff
path: root/lib/js/urweb.js
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-12-03 16:05:06 -0500
committerGravatar Adam Chlipala <adam@chlipala.net>2011-12-03 16:05:06 -0500
commit84087a5652e9f616fdf135c6d0da7ddc33d0edfc (patch)
tree9d3c1db605655be9f4357d6d258863c52d028185 /lib/js/urweb.js
parent5a6ced2cb8eb45b392c72988a834323a61a147a1 (diff)
Client-side strlenGe
Diffstat (limited to 'lib/js/urweb.js')
-rw-r--r--lib/js/urweb.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/js/urweb.js b/lib/js/urweb.js
index c5bb58f7..854ebe45 100644
--- a/lib/js/urweb.js
+++ b/lib/js/urweb.js
@@ -943,6 +943,9 @@ function schr(s, ch) {
function ssub(s, start, len) {
return s.substring(start, start+len);
}
+function strlenGe(s, len) {
+ return s.length >= len;
+}
function trimZeroes(s) {
for (var i = 0; i < s.length; ++i)