From 248d4c31324b275593391c9b9fbd81cbf92471a6 Mon Sep 17 00:00:00 2001 From: Hans Date: Sat, 26 Oct 2019 13:12:11 +0800 Subject: [PATCH] add amp-bind alternative syntax --- lib/tags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tags.js b/lib/tags.js index 6a36786c..53e92e3e 100644 --- a/lib/tags.js +++ b/lib/tags.js @@ -22,7 +22,7 @@ function getTags ({ { tag: 'amp-autocomplete', version: '0.1' }, { tag: 'amp-base-carousel', version: '0.1' }, { tag: 'amp-beopinion', version: '0.1' }, - { tag: 'amp-bind', version: '0.1', regex: /<[^>]*\[.*\][^>]*>/gi }, // usage detection via <..[..]=..> + { tag: 'amp-bind', version: '0.1', regex: /<[^>]*(?:\[.*\]|data-amp-bind-\w+)[^>]*>/gi }, // usage detection via <..[..]=..> { tag: 'amp-bodymovin-animation', version: '0.1' }, { tag: 'amp-brid-player', version: '0.1' }, { tag: 'amp-brightcove', version: '0.1' },