log
graph
tags
bookmarks
branches
changeset
browse
file
latest
diff
comparison
annotate
file log
raw
help
Mercurial
>
urweb
annotate tests/strcspn.ur @ 1793:446e73902b09
Find changesets by keywords (author, files, the commit message), revision number or hash, or
revset expression
.
Fix JavaScript implementation of strcspn()
author
Adam Chlipala <adam@chlipala.net>
date
Tue, 24 Jul 2012 19:49:50 -0400
parents
children
rev
line source
adam@1793
1
fun main () : transaction page =
adam@1793
2
s <- source "";
adam@1793
3
return <xml><body>
adam@1793
4
<ctextbox source={s}/>
adam@1793
5
<button onclick={fn _ => v <- get s; alert (show (strcspn v "0123456789"))}/>
adam@1793
6
</body></xml>