diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-02-12 20:28:17 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-02-14 08:41:39 -0700 |
commit | 2f65c56d068b1e40e3e6c15d735b4e313ea98d4f (patch) | |
tree | 725cb7d522e6ba2c3dbfeec28dc991966a1950e2 /regexec.c | |
parent | f68792c6f49acd33f6789daeb3742005219b5f27 (diff) | |
download | perl-2f65c56d068b1e40e3e6c15d735b4e313ea98d4f.tar.gz |
regexec.c: Handle sharp s in middle of backref
This code handled some of the case of the LATIN SMALL LETTER SHARP S at
the beginning of a back ref, but not in the middle. To do it easily,
just call the function that handles our full Unicode folding
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -4104,10 +4104,7 @@ S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog) s = PL_bostr + ln; if (type != REF /* REF can do byte comparison */ - && (utf8_target - || (type == REFFU - && (*s == (char) LATIN_SMALL_LETTER_SHARP_S - || *locinput == (char) LATIN_SMALL_LETTER_SHARP_S)))) + && (utf8_target || type == REFFU)) { /* XXX handle REFFL better */ char * limit = PL_regeol; |