Force to have at least a blank in RFC and PR words to avoid to accidently urlize - plumb - Open certain URL patterns with an ad-hoc opener (plumber)
(HTM) hg clone https://bitbucket.org/iamleot/plumb
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset 70d20b6c02cb2e074cf6e2cbc4eef81330b39fe8
(DIR) parent 9245f1a668d5af12c62c376cddc341e9f939059a
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Wed, 26 Sep 2018 23:32:03
Force to have at least a blank in RFC and PR words to avoid to accidently urlize
with rfc:// or pr:// part of an URL.
Diffstat:
dplumb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff -r 9245f1a668d5 -r 70d20b6c02cb dplumb
--- a/dplumb Wed Sep 26 20:31:48 2018 +0200
+++ b/dplumb Wed Sep 26 23:32:03 2018 +0200
@@ -59,8 +59,8 @@
{
sed \
- -E -e 's;RFC[[:blank:]]*([0-9]+);rfc://\1 ;g' \
- -E -e 's;PR([[:blank:]]*|/)(([a-z][a-z0-9-]+/)|#)?([0-9]+);pr://\4 ;g'
+ -E -e 's;RFC[[:blank:]]+([0-9]+);rfc://\1 ;g' \
+ -E -e 's;PR([[:blank:]]+|/)(([a-z][a-z0-9-]+/)|#)?([0-9]+);pr://\4 ;g'
}