Skip to content

Commit 804820e

Browse files
committed
Fixed a bug where undefined matches were returned.
1 parent 92a26e9 commit 804820e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/jquery.syntax.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ Syntax.Brush.convertStringToTokenPattern = function (pattern, escape) {
835835

836836
Syntax.Brush.MatchPattern = function (text, rule) {
837837
if (!rule.pattern)
838-
return;
838+
return [];
839839

840840
// Duplicate the pattern so that the function is reentrant.
841841
var matches = [], pattern = new RegExp;

0 commit comments

Comments
 (0)