Displaying 2 results from an estimated 2 matches for "post_match".
Did you mean:
host_match
2005 Dec 16
0
upload problem with mimetypes
...ntent_type variable with my new variable from a look up list for
example "jpg" would then use image/jpeg. This works well with most
images however some do not display correctly and I get this error:
def find_flash_upload_mime_type (ext)
re = /(\.)/
md = re.match(ext)
type = case md.post_match.downcase
when "jpg" : "image/jpeg"
... more case statements for other file types ...
else "application/octet-stream"
end
return type
end
The image "http://localhost:3000/asset/show_data/120" cannot be
displayed, bec...
2016 Jul 26
2
Pull requests: CJK words and Snippet generator
Hi,
The Cyrus IMAP mail server uses Xapian as search engine. Recently,
FastMail has sponsored implementation of two Xapian features: CJK word
splitting and a generator for search snippets. I've been working on both
features and we would be happy to get them merged into Xapian master.
The CJK word tokenizer uses the word segmentation algorithms of the
International Components for Unicode