fis3-demo icon indicating copy to clipboard operation
fis3-demo copied to clipboard

发现glob中存在bug

Open zsl99a opened this issue 9 years ago • 6 comments

'/(widget/{,**/}.tpl)'

在以上式子中, () 中 出现 {} {} 的第二条规则是无效的,

式子是在 use-smarty 的demo中看到的

zsl99a avatar Aug 05 '15 15:08 zsl99a

这个捕获是个坑,这块文档中以说明了 用$1$2代替$1

2betop avatar Aug 06 '15 00:08 2betop

修了这个bug吧,写着太诡异了。

oxUnd avatar Aug 06 '15 00:08 oxUnd

我最后直接 用   **  替代了原来的   {*,**/*}         作为前端,  少写几个字符都是好开心的事情,    虽然不需要经过网络传输,    呵呵达

zsl99a avatar Aug 13 '15 17:08 zsl99a

是的,这个是扩展出来的,感觉更直接点

2betop avatar Aug 14 '15 00:08 2betop

$0$1$2什么意思啊,没有看到相关的解释,求教。

small-joker avatar Nov 12 '15 09:11 small-joker

和正则匹配中的 $0 是一样的, 代表第一个匹配到的结果, $1 第二个 依次类推

zsl99a avatar Nov 18 '15 01:11 zsl99a