Super Linkifier

By FinalDoom Last update Aug 12, 2007 — Installed 15,324 times.

False positive

in
Subscribe to False positive 1 post, 1 voice

Crend King Scriptwright

I like the style thing this script added, but there are usually frustrating false positive cases such as Linux path "~/.ssh/known_hosts". This is not a linkable path. The problem comes from the long and mysterious regexp replacement

"(\\s[^\\w]?)([\\w-.+$!*\\/(),~%?@&=\\\\]+\\.[A-Za-z]{2,4}\\/|[\\w-.+$!*\\/(),~%?@&=\\\\]*www\\.|(?:(?:[^(mailto)][.\\w-]+:)?[.\\w-]+@)?(?:(?:[0-1]?[\\d]{1,2}|2[0-4][\\d]|25[0-5])(?:\\.(?:[0-1]?[\\d]{1,2}|2[0-4][\\d]|25[0-5])){3})\\/|[^(mailto)][.\\w-]+:[.\\w-]+@)": "$1http://$2"

maybe the author should explain a little in comment what does this expression matches, and update from higher compatibility.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel