Mercurial > urweb
view tests/strcspn.ur @ 2267:e5b7b066bf1b
Factor out SQL simplification.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Wed, 14 Oct 2015 20:40:57 -0400 |
parents | 446e73902b09 |
children |
line wrap: on
line source
fun main () : transaction page = s <- source ""; return <xml><body> <ctextbox source={s}/> <button onclick={fn _ => v <- get s; alert (show (strcspn v "0123456789"))}/> </body></xml>