Skip to content
This repository was archived by the owner on Jul 4, 2023. It is now read-only.

Commit d83a0ae

Browse files
author
Jesse Zhang
committed
changed filter regex to look for word boundaries as opposed to start/end of line
1 parent 409aa68 commit d83a0ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/parsers/html-parser.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function parseContent(contents, metadata) {
1818

1919
// Get interpolation filters
2020
var interpolationRegex = /\{\{\s*?(.*?)\s*?\}\}/g,
21-
filterRegex = /(?:^|\()\s*\w+?\s*\|\s*(\w+?)\s*(?:\)|(?=\|)|$)/,
21+
filterRegex = /(?:\b|\()\s*\w+?\s*\|\s*(\w+?)\s*(?:\)|(?=\|)|\b)/,
2222
expression;
2323

2424
while ((expression = interpolationRegex.exec(contents)) !== null) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-angular-builder",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "Gulp plugin to filter and include only necessary AngularJS files.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)