False positive
|
|
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. |