Ticket #984: 0001-Fix-irregex-search-example-with-i-case-insensitive-o.patch

File 0001-Fix-irregex-search-example-with-i-case-insensitive-o.patch, 792 bytes (added by evhan, 8 years ago)
  • manual/Unit

    From a2e6494dde48c2a62d4924e9e4e3f304e0ee4c91 Mon Sep 17 00:00:00 2001
    From: Evan Hanson <evhan@foldling.org>
    Date: Fri, 15 Nov 2013 20:39:57 +1300
    Subject: [PATCH] Fix irregex-search example with 'i (case-insensitive option)
     in irregex docs
    
    ---
     manual/Unit irregex |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/manual/Unit irregex b/manual/Unit irregex
    index 6bd5c15..b8a3a66 100644
    a b Examples: 
    9292<enscript highlight=scheme>
    9393(irregex-search "foobar" "abcFOOBARdef") => #f
    9494
    95 (irregex-search "foobar" "abcFOOBARdef" 'i) => #<match>
     95(irregex-search (irregex "foobar" 'i) "abcFOOBARdef") => #<match>
    9696
    9797(irregex-search '(w/nocase "foobar") "abcFOOBARdef") => #<match>
    9898</enscript>